Merge to Fedora Core 2 kernel-2.6.8-1.521
[linux-2.6.git] / drivers / net / sungem.c
index 6fe6f36..e48ec34 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);