]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Malta: Register UP SMP ops if all else fails
authorPaul Burton <paul.burton@imgtec.com>
Tue, 22 Sep 2015 18:58:43 +0000 (11:58 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 11 Nov 2015 07:35:49 +0000 (08:35 +0100)
commitae741445058e90d994a79d2c4cbc8e89f155be31
tree6b9e8964e2ce68cec24ad70645d7cdce2488f56d
parent70ab4d1d5ce5c3ba00d3077e8a6f95db022050df
MIPS: Malta: Register UP SMP ops if all else fails

If we fail to register any real SMP implementations, fall back to
registering the dummy UP implementation. Otherwise when we build an SMP
kernel & run it on a system where the SMP implementations fail to probe
(eg. QEMU) the kernel will perform a NULL dereference attempting to call
mp_ops->smp_setup() from plat_smp_setup().

Notably this fixes booting kernels with CPS SMP enabled on QEMU, which
doesn't currently implement the CM, CPC or GIC.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Peter Hurley <peter@hurleysoftware.com>
Cc: Rob Herring <robh@kernel.org>
Cc: linux-kernel@vger.kernel.org
Cc: Markos Chandras <markos.chandras@imgtec.com>
Patchwork: https://patchwork.linux-mips.org/patch/11223/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig
arch/mips/mti-malta/malta-init.c