[PATCH 6/13] use cpu_relax() in busy loop

From: Chris Wright
Date: Thu Sep 18 2003 - 18:36:06 EST


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