From: Denis Mukhin via U-Boot <u-boot@lists.u-boot-project.org>
To: u-boot@lists.u-boot-project.org
Cc: sjg@chromium.org, trini@konsulko.com, dmukhin@ford.com
Subject: [PATCH v1 2/2] reset: x86: Use cpu_hlt() in efi_reset_system()
Date: Wed, 29 Jul 2026 01:38:26 -0700 [thread overview]
Message-ID: <20260729083826.2277173-3-dmukhin@ford.com> (raw)
In-Reply-To: <20260729083826.2277173-1-dmukhin@ford.com>
From: Denis Mukhin <dmukhin@ford.com>
Use cpu_hlt() in busy loop in efi_reset_system() similarly to
pch_sysreset_power_off().
Note, this is safe for __efi_runtime-annotated efi_reset_system(),
because cpu_hlt() expands to a bare "hlt".
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
Original patch: https://lore.kernel.org/u-boot/20260603070743.1268544-6-dmukhin@ford.com/
---
drivers/sysreset/sysreset_x86.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/sysreset/sysreset_x86.c b/drivers/sysreset/sysreset_x86.c
index 05a3ff9c8363..afb77d9c5c21 100644
--- a/drivers/sysreset/sysreset_x86.c
+++ b/drivers/sysreset/sysreset_x86.c
@@ -120,7 +120,8 @@ void __efi_runtime EFIAPI efi_reset_system(
/* TODO EFI_RESET_SHUTDOWN */
- while (1) { }
+ for (;;)
+ cpu_hlt();
}
#endif
--
2.54.0
next prev parent reply other threads:[~2026-07-29 8:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-29 8:38 [PATCH v1 0/2] reset: small cleanups for x86 Denis Mukhin via U-Boot
2026-07-29 8:38 ` [PATCH v1 1/2] reset: x86: Use cpu_hlt() in pch_sysreset_power_off() Denis Mukhin via U-Boot
2026-07-29 8:38 ` Denis Mukhin via U-Boot [this message]
2026-08-18 20:05 ` [PATCH v1 0/2] reset: small cleanups for x86 dmukhin
2026-08-20 11:13 ` Simon Glass
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=20260729083826.2277173-3-dmukhin@ford.com \
--to=u-boot@lists.u-boot-project.org \
--cc=dmukhin@ford.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.