[PATCH] isdn: fix-up schedule_timeout() usage
Use schedule_timeout_interruptible() instead of set_current_state()/schedule_timeout() to reduce kernel size. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Cc: Karsten Keil <kkeil@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
4de4ebc6d8
commit
24763c48a3
@@ -1721,8 +1721,7 @@ isdn_tty_close(struct tty_struct *tty, struct file *filp)
|
||||
*/
|
||||
timeout = jiffies + HZ;
|
||||
while (!(info->lsr & UART_LSR_TEMT)) {
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
schedule_timeout(20);
|
||||
schedule_timeout_interruptible(20);
|
||||
if (time_after(jiffies,timeout))
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user