All of lore.kernel.org
 help / color / mirror / Atom feed
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 1/2] reset: x86: Use cpu_hlt() in pch_sysreset_power_off()
Date: Wed, 29 Jul 2026 01:38:25 -0700	[thread overview]
Message-ID: <20260729083826.2277173-2-dmukhin@ford.com> (raw)
In-Reply-To: <20260729083826.2277173-1-dmukhin@ford.com>

From: Denis Mukhin <dmukhin@ford.com> 

Use cpu_hlt() instead of open-coded "hlt" in pch_sysreset_power_off().

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-5-dmukhin@ford.com/
---
 drivers/sysreset/sysreset_x86.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/sysreset/sysreset_x86.c b/drivers/sysreset/sysreset_x86.c
index c2f28c65280f..05a3ff9c8363 100644
--- a/drivers/sysreset/sysreset_x86.c
+++ b/drivers/sysreset/sysreset_x86.c
@@ -65,7 +65,7 @@ int pch_sysreset_power_off(struct udevice *dev)
 	outl(reg32, pm.base + pm.pm1_cnt_ofs);
 
 	for (;;)
-		asm("hlt");
+		cpu_hlt();
 }
 
 static int x86_sysreset_request(struct udevice *dev, enum sysreset_t type)
-- 
2.54.0


  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 ` Denis Mukhin via U-Boot [this message]
2026-07-29  8:38 ` [PATCH v1 2/2] reset: x86: Use cpu_hlt() in efi_reset_system() Denis Mukhin via U-Boot
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-2-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.