]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
genirq: GENERIC_IRQ_IPI depends on SMP
authorSamuel Holland <samuel@sholland.org>
Fri, 1 Jul 2022 20:00:50 +0000 (15:00 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2022 13:15:28 +0000 (15:15 +0200)
[ Upstream commit 0f5209fee90b4544c58b4278d944425292789967 ]

The generic IPI code depends on the IRQ affinity mask being allocated
and initialized. This will not be the case if SMP is disabled. Fix up
the remaining driver that selected GENERIC_IRQ_IPI in a non-SMP config.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220701200056.46555-3-samuel@sholland.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/Kconfig
kernel/irq/Kconfig

index c4b971cd239d24917631b93d1a40ee97e598fc90..3c24bf45263ce80b99bbc3193296e8b22b5c9d6a 100644 (file)
@@ -178,7 +178,7 @@ config MADERA_IRQ
 config IRQ_MIPS_CPU
        bool
        select GENERIC_IRQ_CHIP
-       select GENERIC_IRQ_IPI if SYS_SUPPORTS_MULTITHREADING
+       select GENERIC_IRQ_IPI if SMP && SYS_SUPPORTS_MULTITHREADING
        select IRQ_DOMAIN
        select GENERIC_IRQ_EFFECTIVE_AFF_MASK
 
index 164a031cfdb66e8fd4240ace61f1bbd5d1d7e884..0f2a44fc0971907bdcdf53a412762a345503ca1e 100644 (file)
@@ -82,6 +82,7 @@ config IRQ_FASTEOI_HIERARCHY_HANDLERS
 # Generic IRQ IPI support
 config GENERIC_IRQ_IPI
        bool
+       depends on SMP
        select IRQ_DOMAIN_HIERARCHY
 
 # Generic MSI interrupt support