]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
irqchip/loongson: Select GENERIC_IRQ_EFFECTIVE_AFF_MASK if SMP for IRQ_LOONGARCH_CPU
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 26 Mar 2024 12:11:29 +0000 (20:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jul 2024 07:38:00 +0000 (09:38 +0200)
[ Upstream commit 42a7d887664b02a747ef5d479f6fd01081564af8 ]

An interrupt's effective affinity can only be different from its configured
affinity if there are multiple CPUs. Make it clear that this option is only
meaningful when SMP is enabled. Otherwise, there exists "WARNING: unmet
direct dependencies detected for GENERIC_IRQ_EFFECTIVE_AFF_MASK" when make
menuconfig if CONFIG_SMP is not set on LoongArch.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240326121130.16622-3-yangtiezhu@loongson.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/Kconfig

index 72c07a12f5e18e7af52a80ce24d7e1f77c42416d..bfa1d77749f3e29301784f5e4f40cbdf59517aa5 100644 (file)
@@ -568,7 +568,7 @@ config IRQ_LOONGARCH_CPU
        bool
        select GENERIC_IRQ_CHIP
        select IRQ_DOMAIN
-       select GENERIC_IRQ_EFFECTIVE_AFF_MASK
+       select GENERIC_IRQ_EFFECTIVE_AFF_MASK if SMP
        select LOONGSON_HTVEC
        select LOONGSON_LIOINTC
        select LOONGSON_EIOINTC