lkml.org 
[lkml]   [2003]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.094 / U:1.856 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site