mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Baran Tuna <barant@fastmail.com>
To: Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] x86/reboot: Remove unreachable BIOS reboot fallback
Date: Thu, 26 Nov 2026 21:53:42 +0300	[thread overview]
Message-ID: <db149668504a7933d4fc78b588f5dc80daa150e7.1795719037.git.barant@fastmail.com> (raw)

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


                 reply	other threads:[~2026-11-26 18:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=db149668504a7933d4fc78b588f5dc80daa150e7.1795719037.git.barant@fastmail.com \
    --to=barant@fastmail.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®