[PATCH] Char: tty_wakeup cleanup
tty_wakeup cleanup - remove wake_up_interruptible(&tty->write_wait) surrounding tty_wakup(tty); - substitute tty->ldisc.write_wakeup(tty) + wake_up() by tty_wakeup(tty); Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Acked-by: Tilman Schmidt <tilman@imap.cc> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
1ed0c0b730
commit
b963a8441c
@@ -1258,7 +1258,6 @@ static void flush_buffer(struct tty_struct *tty)
|
||||
del_timer(&info->tx_timer);
|
||||
spin_unlock_irqrestore(&info->lock,flags);
|
||||
|
||||
wake_up_interruptible(&tty->write_wait);
|
||||
tty_wakeup(tty);
|
||||
}
|
||||
|
||||
@@ -2127,10 +2126,8 @@ void bh_transmit(SLMP_INFO *info)
|
||||
printk( "%s(%d):%s bh_transmit() entry\n",
|
||||
__FILE__,__LINE__,info->device_name);
|
||||
|
||||
if (tty) {
|
||||
if (tty)
|
||||
tty_wakeup(tty);
|
||||
wake_up_interruptible(&tty->write_wait);
|
||||
}
|
||||
}
|
||||
|
||||
void bh_status(SLMP_INFO *info)
|
||||
|
Reference in New Issue
Block a user