summaryrefslogtreecommitdiffstats
path: root/drivers/net/slip.c
diff options
context:
space:
mode:
authorNishanth Aravamudan <nacc@us.ibm.com>2005-05-01 23:34:57 -0700
committerJeff Garzik <jgarzik@pobox.com>2005-06-26 18:30:15 -0400
commita9fc25108995f1f59ee30026818d7ec2bb016fbe (patch)
tree61aa2e5b01d749321dc1317ed2a734a0bcf009bf /drivers/net/slip.c
parent6835d09ad286db5df472dc91aae0a69128e7258b (diff)
downloadop-kernel-dev-a9fc25108995f1f59ee30026818d7ec2bb016fbe.zip
op-kernel-dev-a9fc25108995f1f59ee30026818d7ec2bb016fbe.tar.gz
[PATCH] net/slip: replace schedule_timeout() with msleep_interruptible()
Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.
Diffstat (limited to 'drivers/net/slip.c')
-rw-r--r--drivers/net/slip.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/slip.c b/drivers/net/slip.c
index c79e0ad..16363b5 100644
--- 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++) {
OpenPOWER on IntegriCloud