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. BTW, mips doesn't support HOTPLUG_CPU... Signed-off-by: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton --- arch/mips/kernel/smp.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN arch/mips/kernel/smp.c~for_each_possible_cpu-mips arch/mips/kernel/smp.c --- devel/arch/mips/kernel/smp.c~for_each_possible_cpu-mips 2006-03-28 14:49:28.000000000 -0800 +++ devel-akpm/arch/mips/kernel/smp.c 2006-03-28 14:49:28.000000000 -0800 @@ -432,7 +432,7 @@ static int __init topology_init(void) int cpu; int ret; - for_each_cpu(cpu) { + for_each_possible_cpu(cpu) { ret = register_cpu(&per_cpu(cpu_devices, cpu), cpu, NULL); if (ret) printk(KERN_WARNING "topology_init: register_cpu %d " _