projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a10c2a
)
n_tty: Remove superfluous reader wakeup
author
Peter Hurley
<peter@hurleysoftware.com>
Tue, 17 Sep 2013 16:53:34 +0000
(12:53 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 00:55:11 +0000
(17:55 -0700)
n_tty's .set_termios method unconditionally performs reader wakeup;
remove extra reader wakeup for canonical mode changes.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c
patch
|
blob
|
history
diff --git
a/drivers/tty/n_tty.c
b/drivers/tty/n_tty.c
index c9a9ddd1d0bc2aa5091d7e1678920df2d9292429..41c0c80094a501999c15ab4f378197ee0a79ab45 100644
(file)
--- a/
drivers/tty/n_tty.c
+++ b/
drivers/tty/n_tty.c
@@
-1764,9
+1764,6
@@
static void n_tty_set_termios(struct tty_struct *tty, struct ktermios *old)
ldata->lnext = 0;
}
- if (canon_change && !L_ICANON(tty) && read_cnt(ldata))
- wake_up_interruptible(&tty->read_wait);
-
ldata->icanon = (L_ICANON(tty) != 0);
if (I_ISTRIP(tty) || I_IUCLC(tty) || I_IGNCR(tty) ||