mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[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 <[email protected]> Cc: Alan Cox <[email protected]> Acked-by: Tilman Schmidt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1ed0c0b730
commit
b963a8441c
24 changed files with 23 additions and 121 deletions
|
|
@ -3173,12 +3173,8 @@ do_softint(void *private_)
|
|||
if (!tty)
|
||||
return;
|
||||
|
||||
if (test_and_clear_bit(RS_EVENT_WRITE_WAKEUP, &info->event)) {
|
||||
if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
|
||||
tty->ldisc.write_wakeup)
|
||||
(tty->ldisc.write_wakeup)(tty);
|
||||
wake_up_interruptible(&tty->write_wait);
|
||||
}
|
||||
if (test_and_clear_bit(RS_EVENT_WRITE_WAKEUP, &info->event))
|
||||
tty_wakeup(tty);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
@ -3798,11 +3794,7 @@ rs_flush_buffer(struct tty_struct *tty)
|
|||
info->xmit.head = info->xmit.tail = 0;
|
||||
restore_flags(flags);
|
||||
|
||||
wake_up_interruptible(&tty->write_wait);
|
||||
|
||||
if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
|
||||
tty->ldisc.write_wakeup)
|
||||
(tty->ldisc.write_wakeup)(tty);
|
||||
tty_wakeup(tty);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue