]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: SGI-IP27: Fix crash, when CPUs are disabled via nr_cpus parameter
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Tue, 19 Nov 2019 11:08:56 +0000 (12:08 +0100)
committerPaul Burton <paulburton@kernel.org>
Fri, 22 Nov 2019 18:56:14 +0000 (10:56 -0800)
commit3091fcfee46b4c5794d98270504511677773e159
tree969b68ccb8c4ffa225995d8765a771838837cb5b
parent7f358cc1819ab730614d233e73e23a203a89f7f9
MIPS: SGI-IP27: Fix crash, when CPUs are disabled via nr_cpus parameter

If number of CPUs are limited by the kernel commandline parameter nr_cpus
assignment of interrupts accourding to numa rules might not be possibe.
As a fallback use one of the online CPUs as interrupt destination.

Fixes: 5c57313b2136 ("MIPS: SGI-IP27: rework HUB interrupts")
Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
arch/mips/sgi-ip27/ip27-irq.c