[Linux-parport] [patch 2/5] parport/ieee1284: replace schedule_timeout() with msleep_interruptible()

domen at coderock.org domen at coderock.org
Sun Mar 6 17:22:21 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/ieee1284.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -puN drivers/parport/ieee1284.c~msleep_interruptible-drivers_parport_ieee1284 drivers/parport/ieee1284.c
--- kj/drivers/parport/ieee1284.c~msleep_interruptible-drivers_parport_ieee1284	2005-03-05 16:09:35.000000000 +0100
+++ kj-domen/drivers/parport/ieee1284.c	2005-03-05 16:09:35.000000000 +0100
@@ -216,8 +216,7 @@ int parport_wait_peripheral(struct parpo
 			/* parport_wait_event didn't time out, but the
 			 * peripheral wasn't actually ready either.
 			 * Wait for another 10ms. */
-			__set_current_state (TASK_INTERRUPTIBLE);
-			schedule_timeout ((HZ+ 99) / 100);
+			msleep_interruptible(10);
 		}
 	}
 
_



More information about the Linux-parport mailing list