]> 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)
commit19f08c55d0df072751d514b1ec8110ea4bc4a650
tree77d267a87bdb8480d39c1aa0e9aab9e7e55a33fe
parentc40b63c04950cd745a34a62bdf37894058201eab
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