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 9/13] use cpu_relax() in busy loop
Replace busy loop nop with cpu_relax().

===== net/ipv4/ipconfig.c 1.29 vs edited =====
--- 1.29/net/ipv4/ipconfig.c Fri Aug 15 00:41:43 2003
+++ edited/net/ipv4/ipconfig.c Thu Sep 18 11:57:00 2003
@@ -1153,7 +1153,7 @@
/* Give hardware a chance to settle */
jiff = jiffies + CONF_PRE_OPEN;
while (time_before(jiffies, jiff))
- ;
+ cpu_relax();

/* Setup all network devices */
if (ic_open_devs() < 0)
@@ -1162,7 +1162,7 @@
/* Give drivers a chance to settle */
jiff = jiffies + CONF_POST_OPEN;
while (time_before(jiffies, jiff))
- ;
+ cpu_relax();

/*
* If the config information is insufficient (e.g., our IP address or
-
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.091 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site