Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Domen Puncer <domen@coderock.org>

authored by

Nishanth Aravamudan and committed by
Jeff Garzik
f17697a3 0da8b145

+1 -1
+1 -1
drivers/net/pcnet32.c
··· 850 850 if ((!data) || (data > (u32)(MAX_SCHEDULE_TIMEOUT / HZ))) 851 851 data = (u32)(MAX_SCHEDULE_TIMEOUT / HZ); 852 852 853 - schedule_timeout(data * HZ); 853 + msleep_interruptible(data * 1000); 854 854 del_timer_sync(&lp->blink_timer); 855 855 856 856 /* Restore the original value of the bcrs */