net/ni65: replace schedule_timeout() with msleep()
Subsystems (2)
PATCH 4/18 net/ni65: replace schedule_timeout() with msleep()
Any comments would be appreciated.
Description: Use msleep() instead of schedule_timeout() to guarantee the task delays as expected.
Signed-off-by Nishanth Aravamudan <[email protected]>
Signed-off-by Maximilian Attems <[email protected]>
---
linux-2.6.10-rc1-max/drivers/net/ni65.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-)
drivers/net/ni65.c renamed from drivers/net/ni65.c~msleep-drivers_net_ni65 +1 -2
@@ -526,8 +526,7 @@ static int __init ni65_probe1(struct netni65_init_lance (p,dev->dev_addr,0 ,0 ); irq_mask =probe_irq_on ();writereg (CSR0_INIT |CSR0_INEA ,CSR0 );/* trigger interrupt */ -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (HZ /50 ); +msleep (20 ); dev->irq =probe_irq_off (irq_mask);if (!dev->irq) {
_