[PATCH 1/4] IPMI: Change barrier to cpu_relax in poweroff code
From: Corey Minyard
Date: Thu Feb 14 2008 - 13:38:19 EST
From: Corey Minyard <cminyard@xxxxxxxxxx>
Change a barrier to cpu_relax(), which is more appropriate for a
polling loop.
Signed-off-by: Corey Minyard <cminyard@xxxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/