From: Michael Ellerman Date: Thu, 16 Feb 2006 03:13:50 +0000 (+1100) Subject: [PATCH] powerpc: Don't start secondary CPUs in a UP && KEXEC kernel X-Git-Tag: v2.6.16-rc5~72^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f018b36f3e1f21318066de8d01740d30e38b03d5;p=pandora-kernel.git [PATCH] powerpc: Don't start secondary CPUs in a UP && KEXEC kernel 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 Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed