summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2013-07-23 16:47:30 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-24 03:43:03 +0400
commit3afb1b394a49d1237c9c0af8e8b724ddfe5b94ba (patch)
tree958d6da99e73bf1834492b2ab17702087126abc0 /include/linux
parentee0bab83ce65b6f6910cfc0c8278351a0583531b (diff)
downloadlinux-3afb1b394a49d1237c9c0af8e8b724ddfe5b94ba.tar.xz
n_tty: Special case pty flow control
The pty driver forces ldisc flow control on, regardless of available receive buffer space, so the writer can be woken whenever unthrottle is called. However, this 'forced throttle' has performance consequences, as multiple atomic operations are necessary to unthrottle and perform the write wakeup for every input line (in canonical mode). Instead, short-circuit the unthrottle if the tty is a pty and perform the write wakeup directly. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions