[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
@@ -269,18 +269,8 @@ static void mos7720_bulk_out_data_callback(struct urb *urb)
|
||||
|
||||
tty = mos7720_port->port->tty;
|
||||
|
||||
if (tty && mos7720_port->open) {
|
||||
/* let the tty driver wakeup if it has a special *
|
||||
* write_wakeup function */
|
||||
if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
|
||||
tty->ldisc.write_wakeup)
|
||||
(tty->ldisc.write_wakeup)(tty);
|
||||
|
||||
/* tell the tty driver that something has changed */
|
||||
wake_up_interruptible(&tty->write_wait);
|
||||
}
|
||||
|
||||
/* schedule_work(&mos7720_port->port->work); */
|
||||
if (tty && mos7720_port->open)
|
||||
tty_wakeup(tty);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user