]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0dda54d7c9222ce28f1e235c5af9260e520f9de7
tree77d267a87bdb8480d39c1aa0e9aab9e7e55a33fe
parent3039f62d3fccb077513a4ffae4d1ef4609c1b724
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