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)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 9 Apr 2024 09:03:16 +0000 (11:03 +0200)
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
drivers/irqchip/Kconfig

index 687d17e47556d010905c93bee07879808f4e8d9d..14464716bacbb7a7b154a07e19174da213e99210 100644 (file)
@@ -593,7 +593,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