Messages in this thread Patch in this message | | | Date | Thu, 18 Sep 2003 16:41:45 -0700 | From | Chris Wright <> | Subject | [PATCH 11/13] use cpu_relax() in busy loop |
| |
[PATCH 11/13] use cpu_relax() in busy loop
Replace busy loop nop with cpu_relax().
===== drivers/isdn/eicon/linio.c 1.8 vs edited ===== --- 1.8/drivers/isdn/eicon/linio.c Mon Apr 21 03:58:37 2003 +++ edited/drivers/isdn/eicon/linio.c Thu Sep 18 11:14:48 2003 @@ -38,7 +38,8 @@ { unsigned long timeout = jiffies + ((ms * HZ) / 1000); - while (time_before(jiffies, timeout)); + while (time_before(jiffies, timeout)) + cpu_relax(); } int UxCardHandleGet(ux_diva_card_t **card, dia_card_t *cfg) - 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/
| |