Subject: [patch 03/19] net/act2001-sir: replace schedule_timeout() with msleep()

From: [email-masked]
Date: Wed, 12 Jan 2005 00:10:14 +0100

Any comments would be appreciated.

Description: Use msleep() instead of schedule_timeout()
to guarantee the task delays as expected.

Signed-off-by: Nishanth Aravamudan <[email-masked]>
Signed-off-by: Maximilian Attems <[email-masked]>
Signed-off-by: Domen Puncer <[email-masked]>
---

 kj-domen/drivers/net/irda/act200l-sir.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -puN drivers/net/irda/act200l-sir.c~msleep-drivers_net_irda_act200l-sir drivers/net/irda/act200l-sir.c
--- kj/drivers/net/irda/act200l-sir.c~msleep-drivers_net_irda_act200l-sir	2005-01-10 17:59:59.000000000 +0100
+++ kj-domen/drivers/net/irda/act200l-sir.c	2005-01-10 17:59:59.000000000 +0100
@@ -177,8 +177,7 @@ static int act200l_change_speed(struct s
 
 	/* Write control bytes */
 	sirdev_raw_write(dev, control, 3);
-	set_current_state(TASK_UNINTERRUPTIBLE);
-	schedule_timeout(msecs_to_jiffies(5));
+	msleep(5);
 
 	/* Go back to normal mode */
 	sirdev_set_dtr_rts(dev, TRUE, TRUE);
_