From: KAMEZAWA Hiroyuki for_each_cpu() actually iterates across all possible CPUs. We've had mistakes in the past where people were using for_each_cpu() where they should have been iterating across only online or present CPUs. This is inefficient and possibly buggy. We're renaming for_each_cpu() to for_each_possible_cpu() to avoid this in the future. This patch replaces for_each_cpu with for_each_possible_cpu. Signed-off-by: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton --- include/asm-x86_64/percpu.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN include/asm-x86_64/percpu.h~for_each_possible_cpu-x86_64 include/asm-x86_64/percpu.h --- devel/include/asm-x86_64/percpu.h~for_each_possible_cpu-x86_64 2006-03-28 14:49:40.000000000 -0800 +++ devel-akpm/include/asm-x86_64/percpu.h 2006-03-28 14:49:40.000000000 -0800 @@ -26,7 +26,7 @@ #define percpu_modcopy(pcpudst, src, size) \ do { \ unsigned int __i; \ - for_each_cpu(__i) \ + for_each_possible_cpu(__i) \ memcpy((pcpudst)+__per_cpu_offset(__i), \ (src), (size)); \ } while (0) _