IPMI: Change barrier to cpu_relax in poweroff code
PATCH 1/4 IPMI: Change barrier to cpu_relax in poweroff code
From: Corey Minyard <[email protected]>
Change a barrier to cpu_relax(), which is more appropriate for a polling loop.
Signed-off-by Corey Minyard <[email protected]>
---
drivers/char/ipmi/ipmi_poweroff.c +1 -1
@@ -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 ];