net/pcnet32: replace schedule_timeout() with msleep_interruptible()
Subsystems (2)
PATCH 1/1 net/pcnet32: replace schedule_timeout() with msleep_interruptible()
Any comments would be appreciated.
Description: Use msleep_interruptible() 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]>
Signed-off-by Domen Puncer <[email protected]>
---
kj-domen/drivers/net/pcnet32.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/net/pcnet32.c renamed from drivers/net/pcnet32.c~msleep_interruptible-drivers_net_pcnet32 +1 -1
@@ -847,7 +847,7 @@ static int pcnet32_phys_id(struct net_deif ((!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 */
_
Looks and runs fine.
Signed-off-by Don Fry <[email protected]>
Quoted 32 lines · On Wed, Jan 12, 2005 at 12:01:49AM +0100, [email protected] wrote:
Any comments would be appreciated.
Description: Use
msleep_interruptible()instead ofschedule_timeout()to guarantee the task delays as expected.Signed-off-by Nishanth Aravamudan <[email protected]>Signed-off-by Maximilian Attems <[email protected]>Signed-off-by Domen Puncer <[email protected]>---
kj-domen/drivers/net/pcnet32.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)diff -puN
drivers/net/pcnet32.c~msleep_interruptible-drivers_net_pcnet32drivers/net/pcnet32.cdrivers/net/pcnet32.c renamed from drivers/net/pcnet32.c~msleep_interruptible-drivers_net_pcnet32 +1
-1@@ -847,7 +847,7 @@ static int pcnet32_phys_id(struct net_deif ((!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 */ _
Signature · 2 lines
Don Fry [email protected]