powerpc: Fix early boot accounting of CPUs
authorMatt Evans <matt@ozlabs.org>
Wed, 25 May 2011 18:09:12 +0000 (18:09 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 17 Jun 2011 06:19:51 +0000 (16:19 +1000)
commit7ac87abb8166b99584149fcfb2efef5773a078e9
tree626ccec24e00720ada0bd8f967922d935f0eeca8
parent32d206eb5637d8cf73d9c70f7680de2a7193ce8b
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>
arch/powerpc/include/asm/smp.h
arch/powerpc/kernel/head_64.S
arch/powerpc/kernel/prom.c
arch/powerpc/kernel/setup_32.c
arch/powerpc/kernel/setup_64.c