[PATCH 3/3] x86/reboot: Delete CONFIG_SMP=n stub for nmi_shootdown_cpus()
From: Sean Christopherson
Date: Tue Sep 03 2024 - 13:21:49 EST
Remove the CONFIG_SMP=n implementation of nmi_shootdown_cpus() as all
callers invoke nmi_shootdown_cpus() if and only if CONFIG_SMP=y. Keep
the unguarded declaration to play nice with using IS_ENABLED(CONFIG_SMP)
in if-statements (to avoid #ifdefs); thanks to dead code elimination, all
supported compilers will drop the call before linking.
No functional change intended.
Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
---
arch/x86/kernel/reboot.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
index 8c6f6da6ee8e..2c9299394a22 100644
--- a/arch/x86/kernel/reboot.c
+++ b/arch/x86/kernel/reboot.c
@@ -979,11 +979,6 @@ void __noreturn nmi_panic_self_stop(struct pt_regs *regs)
}
#else /* !CONFIG_SMP */
-void nmi_shootdown_cpus(nmi_shootdown_cb callback)
-{
- /* No other CPUs to shoot down */
-}
-
void run_crash_ipi_callback(struct pt_regs *regs)
{
}
--
2.47.0.rc1.288.g06298d1525-goog
--Osa6c5ZHj6sBiqsE--