[Linux-parport] [patch 3/5] parport/parport_pc: replace
schedule_timeout() with msleep_interruptible()
domen at coderock.org
domen at coderock.org
Sun Mar 6 17:22:24 EST 2005
Use msleep_interruptible() instead of schedule_timeout() to
guarantee the task delays as expected.
Signed-off-by: Nishanth Aravamudan <nacc at us.ibm.com>
Signed-off-by: Maximilian Attems <janitor at sternwelten.at>
Signed-off-by: Domen Puncer <domen at coderock.org>
---
kj-domen/drivers/parport/parport_pc.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
diff -puN drivers/parport/parport_pc.c~msleep_interruptible-drivers_parport_parport_pc drivers/parport/parport_pc.c
--- kj/drivers/parport/parport_pc.c~msleep_interruptible-drivers_parport_parport_pc 2005-03-05 16:09:36.000000000 +0100
+++ kj-domen/drivers/parport/parport_pc.c 2005-03-05 16:09:36.000000000 +0100
@@ -169,8 +169,7 @@ static int change_mode(struct parport *p
if (time_after_eq (jiffies, expire))
/* The FIFO is stuck. */
return -EBUSY;
- __set_current_state (TASK_INTERRUPTIBLE);
- schedule_timeout ((HZ + 99) / 100);
+ msleep_interruptible(10);
if (signal_pending (current))
break;
}
_
More information about the Linux-parport
mailing list