Skip to contentSkip to conversation

irda/irtty-sir: replace

PATCH maximilian attems 1 participant 1 message Aug 14, 2004 Kernel janitors

lore
Share & tools
lore
#0 lore raw
Quoted 21 lines · Nishanth Aravamudan

I would appreciate any comments from the janitors list.

Applys-to: 2.6.7

Description: Replace schedule_timeout() with msleep() to guarantee the task delays for the desired time.

drivers/net/irda/irtty-sir.c +1 -0
@@ -32,6 +32,7 @@
 #include <linux/init.h>
 #include <asm/uaccess.h>
 #include <linux/smp_lock.h>
+#include <linux/delay.h>
 
 #include <net/irda/irda.h>
 #include <net/irda/irda_device.h>

drivers/net/irda/irtty-sir.c static void irtty_wait_until_sent(struct · line 100

Quoted 8 lines
drivers/net/irda/irtty-sir.c +1 -4
@@ -96,10 +97,8 @@ static void irtty_wait_until_sent(struct
 		tty->driver->wait_until_sent(tty, msecs_to_jiffies(100));
 		unlock_kernel();
 	}
-	else {
-		set_task_state(current, TASK_UNINTERRUPTIBLE);
-		schedule_timeout(msecs_to_jiffies(USBSERIAL_TX_DONE_DELAY));
-	}
+	else 

aheem

Quoted 9 lines
drivers/net/irda/irtty-sir.c +1 -0
+		msleep(USBSERIAL_TX_DONE_DELAY);
 }
 
 /* 

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors