OSDN Git Service
(root)
/
uclinux-h8
/
linux.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
c9a9ddd
..
41c0c80
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) ||