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)
commite3d765a941f6130fd94e47b2064cfee71f4cbadd
tree969b68ccb8c4ffa225995d8765a771838837cb5b
parent2bee1b58484f036e3e2dc657e524d095d0d332b3
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: 69a07a41d908 ("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