aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tty/n_tty.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c
index d9a5fc28fef4..b280abaad91b 100644
--- a/drivers/tty/n_tty.c
+++ b/drivers/tty/n_tty.c
@@ -269,16 +269,13 @@ static void n_tty_check_throttle(struct tty_struct *tty)
269 269
270static void n_tty_check_unthrottle(struct tty_struct *tty) 270static void n_tty_check_unthrottle(struct tty_struct *tty)
271{ 271{
272 if (tty->driver->type == TTY_DRIVER_TYPE_PTY && 272 if (tty->driver->type == TTY_DRIVER_TYPE_PTY) {
273 tty->link->ldisc->ops->write_wakeup == n_tty_write_wakeup) {
274 if (chars_in_buffer(tty) > TTY_THRESHOLD_UNTHROTTLE) 273 if (chars_in_buffer(tty) > TTY_THRESHOLD_UNTHROTTLE)
275 return; 274 return;
276 if (!tty->count) 275 if (!tty->count)
277 return; 276 return;
278 n_tty_kick_worker(tty); 277 n_tty_kick_worker(tty);
279 n_tty_write_wakeup(tty->link); 278 tty_wakeup(tty->link);
280 if (waitqueue_active(&tty->link->write_wait))
281 wake_up_interruptible_poll(&tty->link->write_wait, POLLOUT);
282 return; 279 return;
283 } 280 }
284 281