[PATCH 2/13] use cpu_relax() in busy loop
From: Chris Wright
Date:  Thu Sep 18 2003 - 18:28:43 EST
[PATCH 2/13] use cpu_relax() in busy loop
Replace busy loop nop with cpu_relax().
===== drivers/atm/fore200e.c 1.19 vs edited =====
--- 1.19/drivers/atm/fore200e.c	Tue Sep  2 11:07:59 2003
+++ edited/drivers/atm/fore200e.c	Thu Sep 18 10:42:17 2003
@@ -248,7 +248,8 @@
 fore200e_spin(int msecs)
 {
     unsigned long timeout = jiffies + MSECS(msecs);
-    while (time_before(jiffies, timeout));
+    while (time_before(jiffies, timeout))
+    	cpu_relax();
 }
 
 
-
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/