[PATCH] powerpc: Don't start secondary CPUs in a UP && KEXEC kernel
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 16 Feb 2006 03:13:50 +0000 (14:13 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 20 Feb 2006 01:03:34 +0000 (12:03 +1100)
Because smp_release_cpus() is built for SMP || KEXEC, it's not safe to
unconditionally call it from setup_system(). On a UP && KEXEC kernel we'll
start up the secondary CPUs which will then go beserk and we die.

Simple fix is to conditionally call smp_release_cpus() in setup_system(). With
that in place we don't need the dummy definition of smp_release_cpus() because
all call sites are #ifdef'ed either SMP or KEXEC.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>

No differences found