Commit ff8353aa authored by Roland Dreier's avatar Roland Dreier Committed by Linus Torvalds

[PATCH] InfiniBand/ipoib: remove uses of yield()

Replace uses of yield() with msleep(1) as suggested by kernel janitors.
Signed-off-by: default avatarRoland Dreier <roland@topspin.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6508750f
......@@ -509,7 +509,7 @@ int ipoib_ib_dev_stop(struct net_device *dev)
goto timeout;
}
yield();
msleep(1);
}
ipoib_dbg(priv, "All sends and receives done.\n");
......@@ -535,7 +535,7 @@ int ipoib_ib_dev_stop(struct net_device *dev)
break;
}
yield();
msleep(1);
}
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment