summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup-common.c
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki2006-03-29 00:50:51 +0200
committerPaul Mackerras2006-03-29 04:44:15 +0200
commit0e5519548fdc8eadc3eacb49b1908d44d347fb2b (patch)
tree176d01babed4ece005f6c4715c464411c4262e9b /arch/powerpc/kernel/setup-common.c
parent[PATCH] lock PTE before updating it in 440/BookE page fault handler (diff)
downloadkernel-qcow2-linux-0e5519548fdc8eadc3eacb49b1908d44d347fb2b.tar.gz
kernel-qcow2-linux-0e5519548fdc8eadc3eacb49b1908d44d347fb2b.tar.xz
kernel-qcow2-linux-0e5519548fdc8eadc3eacb49b1908d44d347fb2b.zip
[PATCH] for_each_possible_cpu: powerpc
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 <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/setup-common.c')
-rw-r--r--arch/powerpc/kernel/setup-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c
index 3473cb9cb0ab..c607f3b9ca17 100644
--- a/arch/powerpc/kernel/setup-common.c
+++ b/arch/powerpc/kernel/setup-common.c
@@ -431,7 +431,7 @@ void __init smp_setup_cpu_maps(void)
/*
* Do the sibling map; assume only two threads per processor.
*/
- for_each_cpu(cpu) {
+ for_each_possible_cpu(cpu) {
cpu_set(cpu, cpu_sibling_map[cpu]);
if (cpu_has_feature(CPU_FTR_SMT))
cpu_set(cpu ^ 0x1, cpu_sibling_map[cpu]);