[<prev] [next>] [day] [month] [year] [list]
Message-id: <20080214182638.GA20148@minyard.local>
Date: Thu, 14 Feb 2008 12:26:38 -0600
From: Corey Minyard <minyard@....org>
To: Linux Kernel <linux-kernel@...r.kernel.org>
Cc: Andrew Morton <akpm@...l.org>,
OpenIPMI Developers <openipmi-developer@...ts.sourceforge.net>
Subject: [PATCH 1/4] IPMI: Change barrier to cpu_relax in poweroff code
From: Corey Minyard <cminyard@...sta.com>
Change a barrier to cpu_relax(), which is more appropriate for a
polling loop.
Signed-off-by: Corey Minyard <cminyard@...sta.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];
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists