Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/pmac: Fix SMP kernels on pre-core99 UP machines

The code for "powersurge" SMP would kick in and cause a crash
at boot due to the lack of a NULL test.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

+1 -1
+1 -1
arch/powerpc/platforms/powermac/smp.c
··· 414 414 415 415 static void __init smp_psurge_setup_cpu(int cpu_nr) 416 416 { 417 - if (cpu_nr != 0) 417 + if (cpu_nr != 0 || !psurge_start) 418 418 return; 419 419 420 420 /* reset the entry point so if we get another intr we won't