projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6835d09
)
[PATCH] net/slip: replace schedule_timeout() with msleep_interruptible()
author
Nishanth Aravamudan
<nacc@us.ibm.com>
Mon, 2 May 2005 06:34:57 +0000
(23:34 -0700)
committer
Jeff Garzik
<jgarzik@pobox.com>
Sun, 26 Jun 2005 22:30:15 +0000
(18:30 -0400)
Use msleep_interruptible() instead of schedule_timeout() to guarantee
the task delays as expected.
drivers/net/slip.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/slip.c
b/drivers/net/slip.c
index c79e0ad4ba027afd1f8807de71ea1bc0cab0e68e..16363b5c6f56ca95369af6a33b18feeae3bf050f 100644
(file)
--- a/
drivers/net/slip.c
+++ b/
drivers/net/slip.c
@@
-1383,10
+1383,8
@@
static void __exit slip_exit(void)
/* First of all: check for active disciplines and hangup them.
*/
do {
- if (busy) {
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(HZ / 10);
- }
+ if (busy)
+ msleep_interruptible(100);
busy = 0;
for (i = 0; i < slip_maxdev; i++) {