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

Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>

--- 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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to