[POWERPC] Fix non-MPIC CHRPs with CONFIG_SMP set
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 4 Jul 2006 04:09:36 +0000 (14:09 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 25 Jul 2006 15:27:04 +0000 (01:27 +1000)
commit8cffc6ac66a2b251df2490702923611aa4ac1fc5
tree7ae7509d009739702cab10441a61c4c36c5913a8
parent21bd2e6696bb5c8b32b00a0ea597f49bfda0ddc6
[POWERPC] Fix non-MPIC CHRPs with CONFIG_SMP set

Pseudo-CHRP machines like Pegasos without an MPIC would crash at boot if
CONFIG_SMP was set because the "smp_ops" pointer was set to MPIC related
ops unconditionally. This patch makes it NULL on machines that don't
support SMP and provides proper default behaviour in the callers when
smp_ops is NULL.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/smp.c
arch/powerpc/platforms/chrp/setup.c