aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/n_tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/n_tty.c')
-rw-r--r--drivers/char/n_tty.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/char/n_tty.c b/drivers/char/n_tty.c
index abc93a93dcdd..19105ec203f7 100644
--- a/drivers/char/n_tty.c
+++ b/drivers/char/n_tty.c
@@ -147,10 +147,8 @@ static void put_tty_queue(unsigned char c, struct tty_struct *tty)
147 147
148static void check_unthrottle(struct tty_struct *tty) 148static void check_unthrottle(struct tty_struct *tty)
149{ 149{
150 if (tty->count && 150 if (tty->count)
151 test_and_clear_bit(TTY_THROTTLED, &tty->flags) && 151 tty_unthrottle(tty);
152 tty->ops->unthrottle)
153 tty->ops->unthrottle(tty);
154} 152}
155 153
156/** 154/**
@@ -982,12 +980,8 @@ static void n_tty_receive_buf(struct tty_struct *tty, const unsigned char *cp,
982 * mode. We don't want to throttle the driver if we're in 980 * mode. We don't want to throttle the driver if we're in
983 * canonical mode and don't have a newline yet! 981 * canonical mode and don't have a newline yet!
984 */ 982 */
985 if (tty->receive_room < TTY_THRESHOLD_THROTTLE) { 983 if (tty->receive_room < TTY_THRESHOLD_THROTTLE)
986 /* check TTY_THROTTLED first so it indicates our state */ 984 tty_throttle(tty);
987 if (!test_and_set_bit(TTY_THROTTLED, &tty->flags) &&
988 tty->ops->throttle)
989 tty->ops->throttle(tty);
990 }
991} 985}
992 986
993int is_ignored(int sig) 987int is_ignored(int sig)