* [PATCH] x86/reboot: Remove unreachable BIOS reboot fallback
@ 2026-11-26 18:53 Baran Tuna
0 siblings, 0 replies; only message in thread
From: Baran Tuna @ 2026-11-26 18:53 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
H. Peter Anvin
Cc: linux-kernel
machine_real_restart() is __noreturn, so the BOOT_BIOS case
cannot advance to BOOT_CF9_SAFE after calling it. Remove the
unreachable assignment and break, along with the comment that
describes the fallback.
No functional change.
Signed-off-by: Baran Tuna <barant@fastmail.com>
---
arch/x86/kernel/reboot.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
index 0fed6d0d7e32..28f938a3be44 100644
--- a/arch/x86/kernel/reboot.c
+++ b/arch/x86/kernel/reboot.c
@@ -635,10 +635,6 @@ static void native_machine_emergency_restart(void)
case BOOT_BIOS:
machine_real_restart(MRR_BIOS);
- /* We're probably dead after this, but... */
- reboot_type = BOOT_CF9_SAFE;
- break;
-
case BOOT_CF9_FORCE:
port_cf9_safe = true;
fallthrough;
base-commit: 9437ee8b6cf607e883b36e44bd755968daaebd48
--
2.53.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-26 18:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 18:53 [PATCH] x86/reboot: Remove unreachable BIOS reboot fallback Baran Tuna
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®