[PATCH] net/pcnet32: replace schedule_timeout() with msleep_interruptible()
authorNishanth Aravamudan <nacc@us.ibm.com>
Mon, 20 Jun 2005 21:54:12 +0000 (23:54 +0200)
committerJeff Garzik <jgarzik@pobox.com>
Mon, 27 Jun 2005 03:48:37 +0000 (23:48 -0400)
Use msleep_interruptible() instead of schedule_timeout() to
guarantee the task delays as expected.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Domen Puncer <domen@coderock.org>
drivers/net/pcnet32.c

index 13f114876965ba1d26f3bc2c604037d409213fa5..3213f3e50487cee1076d9d69407ea520108bbd07 100644 (file)
@@ -850,7 +850,7 @@ static int pcnet32_phys_id(struct net_device *dev, u32 data)
     if ((!data) || (data > (u32)(MAX_SCHEDULE_TIMEOUT / HZ)))
     data = (u32)(MAX_SCHEDULE_TIMEOUT / HZ);
 
-    schedule_timeout(data * HZ);
+    msleep_interruptible(data * 1000);
     del_timer_sync(&lp->blink_timer);
 
     /* Restore the original value of the bcrs */