net/ewrk3: replace schedule_timeout() with msleep_interruptible()
Subsystems (2)
PATCH 9/18 net/ewrk3: replace schedule_timeout() with msleep_interruptible()
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 protected]>
---
linux-2.6.10-rc1-max/drivers/net/ewrk3.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-)
drivers/net/ewrk3.c renamed from drivers/net/ewrk3.c~msleep_interruptible-drivers_net_ewrk3 +1 -2
@@ -1655,8 +1655,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 */
_