summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup_64.c
diff options
context:
space:
mode:
authorMatt Evans <matt@ozlabs.org>2011-05-25 18:09:12 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-06-17 16:19:51 +1000
commit7ac87abb8166b99584149fcfb2efef5773a078e9 (patch)
tree626ccec24e00720ada0bd8f967922d935f0eeca8 /arch/powerpc/kernel/setup_64.c
parent32d206eb5637d8cf73d9c70f7680de2a7193ce8b (diff)
downloadlinux-7ac87abb8166b99584149fcfb2efef5773a078e9.tar.gz
linux-7ac87abb8166b99584149fcfb2efef5773a078e9.tar.bz2
linux-7ac87abb8166b99584149fcfb2efef5773a078e9.zip
powerpc: Fix early boot accounting of CPUs
smp_release_cpus() waits for all cpus (including the bootcpu) due to an off-by-one count on boot_cpu_count (which is all CPUs). This patch replaces that with spinning_secondaries (which is all secondary CPUs). Signed-off-by: Matt Evans <matt@ozlabs.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/setup_64.c')
-rw-r--r--arch/powerpc/kernel/setup_64.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index a88bf2713d41..05769190e7f1 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -73,7 +73,7 @@
#endif
int boot_cpuid = 0;
-int __initdata boot_cpu_count;
+int __initdata spinning_secondaries;
u64 ppc64_pft_size;
/* Pick defaults since we might want to patch instructions
@@ -253,11 +253,11 @@ void smp_release_cpus(void)
for (i = 0; i < 100000; i++) {
mb();
HMT_low();
- if (boot_cpu_count == 0)
+ if (spinning_secondaries == 0)
break;
udelay(1);
}
- DBG("boot_cpu_count = %d\n", boot_cpu_count);
+ DBG("spinning_secondaries = %d\n", spinning_secondaries);
DBG(" <- smp_release_cpus()\n");
}