[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:
Jiri Slaby 2007-02-10 01:44:55 -08:00 • committed by Linus Torvalds
commit b963a8441c
24 changed files with 23 additions and 121 deletions

View file

@ -626,10 +626,8 @@ static void do_softint(unsigned long private_)
if (!tty)
return;
if (test_and_clear_bit(RS_EVENT_WRITE_WAKEUP, &info->event)) {
if (test_and_clear_bit(RS_EVENT_WRITE_WAKEUP, &info->event))
tty_wakeup(tty);
wake_up_interruptible(&tty->write_wait);
}
}
static int zs_startup(struct dec_serial * info)