[openib-general] [PATCH][9/12] InfiniBand/ipoib: remove uses of yield()

Roland Dreier roland at topspin.com
Sun Jan 23 22:14:24 PST 2005


Replace uses of yield() with msleep(1) as suggested by kernel janitors.

Signed-off-by: Roland Dreier <roland at topspin.com>

--- linux-bk.orig/drivers/infiniband/ulp/ipoib/ipoib_ib.c	2005-01-23 08:31:58.000000000 -0800
+++ linux-bk/drivers/infiniband/ulp/ipoib/ipoib_ib.c	2005-01-23 20:52:46.294255560 -0800
@@ -509,7 +509,7 @@
 			goto timeout;
 		}
 
-		yield();
+		msleep(1);
 	}
 
 	ipoib_dbg(priv, "All sends and receives done.\n");
@@ -535,7 +535,7 @@
 			break;
 		}
 
-		yield();
+		msleep(1);
 	}
 
 	return 0;




More information about the general mailing list