[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
@@ -1229,7 +1229,6 @@ static void rc_flush_buffer(struct tty_struct *tty)
|
||||
port->xmit_cnt = port->xmit_head = port->xmit_tail = 0;
|
||||
restore_flags(flags);
|
||||
|
||||
wake_up_interruptible(&tty->write_wait);
|
||||
tty_wakeup(tty);
|
||||
}
|
||||
|
||||
@@ -1570,10 +1569,8 @@ static void do_softint(struct work_struct *ugly_api)
|
||||
if(!(tty = port->tty))
|
||||
return;
|
||||
|
||||
if (test_and_clear_bit(RS_EVENT_WRITE_WAKEUP, &port->event)) {
|
||||
if (test_and_clear_bit(RS_EVENT_WRITE_WAKEUP, &port->event))
|
||||
tty_wakeup(tty);
|
||||
wake_up_interruptible(&tty->write_wait);
|
||||
}
|
||||
}
|
||||
|
||||
static const struct tty_operations riscom_ops = {
|
||||
|
Reference in New Issue
Block a user