]> 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)
commitc9a0c5eec181ad7102660ac2356783d3095c53df
tree969b68ccb8c4ffa225995d8765a771838837cb5b
parent223ebb3aa5747e3af1a0af945ccfb67c3f9cf7ce
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: 3ff6b8f9551c ("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