Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f17697a3 authored by Nishanth Aravamudan's avatar Nishanth Aravamudan Committed by Jeff Garzik
Browse files

[PATCH] net/pcnet32: replace schedule_timeout() with msleep_interruptible()



Use msleep_interruptible() instead of schedule_timeout() to
guarantee the task delays as expected.

Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarMaximilian Attems <janitor@sternwelten.at>
Signed-off-by: default avatarDomen Puncer <domen@coderock.org>
parent 0da8b145
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -850,7 +850,7 @@ static int pcnet32_phys_id(struct net_device *dev, u32 data)
    if ((!data) || (data > (u32)(MAX_SCHEDULE_TIMEOUT / HZ)))
    if ((!data) || (data > (u32)(MAX_SCHEDULE_TIMEOUT / HZ)))
    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);
    del_timer_sync(&lp->blink_timer);


    /* Restore the original value of the bcrs */
    /* Restore the original value of the bcrs */