]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: remove redundant check for CONFIG_SMP
authorHui Wang <hui.wang@canonical.com>
Sun, 5 Apr 2026 00:42:41 +0000 (18:42 -0600)
committerPaul Walmsley <pjw@kernel.org>
Sun, 5 Apr 2026 00:42:41 +0000 (18:42 -0600)
In the arch/riscv/Kconfig, the HOTPLUG_CPU depends on SMP, hence if
the HOTPLUG_CPU is defined, the SMP has to be defined, it is not
necessary to check SMP here.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
Link: https://patch.msgid.link/20260304033403.238012-1-hui.wang@canonical.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/include/asm/smp.h

index 7ac80e9f2288992c515b13985e3850c913193da7..0ecc67641b09d6ef717acb07b3f0e4bcfafe415c 100644 (file)
@@ -105,7 +105,7 @@ static inline void riscv_ipi_set_virq_range(int virq, int nr)
 
 #endif /* CONFIG_SMP */
 
-#if defined(CONFIG_HOTPLUG_CPU) && (CONFIG_SMP)
+#if defined(CONFIG_HOTPLUG_CPU)
 bool cpu_has_hotplug(unsigned int cpu);
 #else
 static inline bool cpu_has_hotplug(unsigned int cpu)