Messages in this thread Patch in this message | | | Date | Thu, 18 Sep 2003 16:27:48 -0700 | From | Chris Wright <> | Subject | [PATCH 2/13] use cpu_relax() in busy loop |
| |
[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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |