Messages in this thread Patch in this message | | | Date | Thu, 18 Sep 2003 16:34:08 -0700 | From | Chris Wright <> | Subject | [PATCH 6/13] use cpu_relax() in busy loop |
| |
Replace busy loop nop with cpu_relax().
===== drivers/char/moxa.c 1.25 vs edited ===== --- 1.25/drivers/char/moxa.c Mon Jun 23 18:43:58 2003 +++ edited/drivers/char/moxa.c Thu Sep 18 10:56:00 2003 @@ -2758,7 +2758,8 @@ st = jiffies; et = st + tick; - while (time_before(jiffies, et)); + while (time_before(jiffies, et)) + cpu_relax(); } static void moxafunc(unsigned long ofsAddr, int cmd, ushort arg) - 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/
| |