]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] for_each_possible_cpu
authorAndrew Morton <akpm@osdl.org>
Mon, 24 Apr 2006 08:49:59 +0000 (01:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 1 May 2006 19:03:42 +0000 (12:03 -0700)
Backport for_each_possible_cpu() into 2.6.16.  Fixes the alpha build, and any
future occurrences.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/cpumask.h

index 60e56c6e03dd3ee6c4836031b88626eaba249b1e..a47ad705c63efc2f8b10f28987560056d0e4b1c5 100644 (file)
@@ -408,6 +408,7 @@ extern cpumask_t cpu_present_map;
 })
 
 #define for_each_cpu(cpu)        for_each_cpu_mask((cpu), cpu_possible_map)
+#define for_each_possible_cpu(cpu)  for_each_cpu_mask((cpu), cpu_possible_map)
 #define for_each_online_cpu(cpu)  for_each_cpu_mask((cpu), cpu_online_map)
 #define for_each_present_cpu(cpu) for_each_cpu_mask((cpu), cpu_present_map)