From: Szymon Janc Date: Sat, 27 Nov 2010 08:39:48 +0000 (+0000) Subject: forcedeth: use usleep_range not msleep for small sleeps X-Git-Tag: v2.6.38-rc1~476^2~416 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de855b992d75e49816eb09231764e7a63a4f555d;p=platform%2Fkernel%2Flinux-exynos.git forcedeth: use usleep_range not msleep for small sleeps Signed-off-by: Szymon Janc Signed-off-by: David S. Miller --- diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c index 2f092d7..2fd1ae9 100644 --- a/drivers/net/forcedeth.c +++ b/drivers/net/forcedeth.c @@ -1178,7 +1178,7 @@ static int phy_reset(struct net_device *dev, u32 bmcr_setup) /* must wait till reset is deasserted */ while (miicontrol & BMCR_RESET) { - msleep(10); + usleep_range(10000, 20000); miicontrol = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); /* FIXME: 100 tries seem excessive */ if (tries++ > 100)