Subject: [patch 18/19] net/ewrk3: replace schedule_timeout() with msleep_interruptible()

From: [email-masked]
Date: Wed, 12 Jan 2005 00:11:03 +0100

Any comments would be, as always, appreciated.

-Nish

Description: Uses msleep() instead of schedule_timeout() to guarantee
the task delays as expected.

Signed-off-by: Nishanth Aravamudan <[email-masked]>
Signed-off-by: Domen Puncer <[email-masked]>
---

 kj-domen/drivers/net/ewrk3.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -puN drivers/net/ewrk3.c~msleep_interruptible-drivers_net_ewrk3 drivers/net/ewrk3.c
--- kj/drivers/net/ewrk3.c~msleep_interruptible-drivers_net_ewrk3	2005-01-10 18:00:24.000000000 +0100
+++ kj-domen/drivers/net/ewrk3.c	2005-01-10 18:00:24.000000000 +0100
@@ -1654,8 +1654,7 @@ static int ewrk3_phys_id(struct net_devi
 
 		/* Wait a little while */
 		spin_unlock_irqrestore(&lp->hw_lock, flags);
-		set_current_state(TASK_UNINTERRUPTIBLE);
-		schedule_timeout(HZ>>2);
+		msleep(250);
 		spin_lock_irqsave(&lp->hw_lock, flags);
 
 		/* Exit if we got a signal */
_