MIPS: Fix broken malta qemu
authorQais Yousef <qsyousef@gmail.com>
Thu, 17 Mar 2016 21:08:09 +0000 (21:08 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 29 Mar 2016 12:18:18 +0000 (14:18 +0200)
commit19fb5818ed60ac2e9609ad16bc48116f4ce269a8
tree77d267a87bdb8480d39c1aa0e9aab9e7e55a33fe
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
MIPS: Fix broken malta qemu

Malta defconfig compiles with GIC on. Hence when compiling for SMP it causes
the new IPI code to be activated. But on qemu malta there's no GIC causing a
BUG_ON(!ipidomain) to be hit in mips_smp_ipi_init().

Since in that configuration one can only run a single core SMP (!), skip IPI
initialisation if we detect that this is the case. It is a sensible
behaviour to introduce and should keep such possible configuration to run
rather than die hard unnecessarily.

Signed-off-by: Qais Yousef <qsyousef@gmail.com>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12892/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/smp.c