[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
@@ -599,19 +599,9 @@ out:
|
||||
static void if_wake(unsigned long data)
|
||||
{
|
||||
struct cardstate *cs = (struct cardstate *) data;
|
||||
struct tty_struct *tty;
|
||||
|
||||
tty = cs->tty;
|
||||
if (!tty)
|
||||
return;
|
||||
|
||||
if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
|
||||
tty->ldisc.write_wakeup) {
|
||||
gig_dbg(DEBUG_IF, "write wakeup call");
|
||||
tty->ldisc.write_wakeup(tty);
|
||||
}
|
||||
|
||||
wake_up_interruptible(&tty->write_wait);
|
||||
if (cs->tty)
|
||||
tty_wakeup(cs->tty);
|
||||
}
|
||||
|
||||
/*** interface to common ***/
|
||||
|
Reference in New Issue
Block a user