Skip to content

Commit

Permalink
[PATCH] net/pcnet32: replace schedule_timeout() with msleep_interrupt…
Browse files Browse the repository at this point in the history
…ible()

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>
  • Loading branch information
Nishanth Aravamudan authored and Jeff Garzik committed Jun 27, 2005
1 parent 0da8b14 commit f17697a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/pcnet32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit f17697a

Please sign in to comment.