]> git.hungrycats.org Git - linux/commitdiff
[NET]: Use msleep() in sungem driver.
authorNishanth Aravamudan <nacc@us.ibm.com>
Wed, 28 Jul 2004 11:55:35 +0000 (04:55 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Wed, 28 Jul 2004 11:55:35 +0000 (04:55 -0700)
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: David S. Miller <davem@redhat.com>
drivers/net/sungem.c

index 6fe6f3601a98ad67c148c254082fea42002a99cd..e48ec342132818e0ea04b45b42f265ca4b32004e 100644 (file)
@@ -2024,8 +2024,7 @@ static void gem_stop_phy(struct gem *gp)
        /* Let the chip settle down a bit, it seems that helps
         * for sleep mode on some models
         */
-       set_current_state(TASK_UNINTERRUPTIBLE);
-       schedule_timeout(HZ/100);
+       msleep(10);
 
        /* Make sure we aren't polling PHY status change. We
         * don't currently use that feature though
@@ -2043,8 +2042,7 @@ static void gem_stop_phy(struct gem *gp)
                 * dont wait a bit here, looks like the chip takes
                 * some time to really shut down
                 */
-               set_current_state(TASK_UNINTERRUPTIBLE);
-               schedule_timeout(HZ/100);
+               msleep(10);
        }
 
        writel(0, gp->regs + MAC_TXCFG);