forcedeth: use usleep_range not msleep for small sleeps
authorSzymon Janc <szymon@janc.net.pl>
Sat, 27 Nov 2010 08:39:48 +0000 (08:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Nov 2010 02:06:59 +0000 (18:06 -0800)
Signed-off-by: Szymon Janc <szymon@janc.net.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/forcedeth.c

index 2f092d75d78ee0c5fa2e219417af16f263f6e4f9..2fd1ae9e13b5580234ebd4a6fb80a412d85ae621 100644 (file)
@@ -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)