linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] IPMI: Change barrier to cpu_relax in poweroff code
@ 2008-02-14 18:26 Corey Minyard
  0 siblings, 0 replies; only message in thread
From: Corey Minyard @ 2008-02-14 18:26 UTC (permalink / raw)
  To: Linux Kernel; +Cc: Andrew Morton, OpenIPMI Developers

From: Corey Minyard <cminyard@mvista.com>

Change a barrier to cpu_relax(), which is more appropriate for a
polling loop.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
---

Index: linux-2.6.24/drivers/char/ipmi/ipmi_poweroff.c
===================================================================
--- linux-2.6.24.orig/drivers/char/ipmi/ipmi_poweroff.c
+++ linux-2.6.24/drivers/char/ipmi/ipmi_poweroff.c
@@ -175,7 +175,7 @@ static int ipmi_request_in_rc_mode(ipmi_
 	 */
 	while (atomic_read(&dummy_count) > 0) {
 		ipmi_poll_interface(user);
-		barrier();
+		cpu_relax();
 	}
 
 	return halt_recv_msg.msg.data[0];

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-14 18:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-14 18:26 [PATCH 1/4] IPMI: Change barrier to cpu_relax in poweroff code Corey Minyard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).