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]>
---

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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to