n_tty: Factor LNEXT processing from per-char i/o path
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 24 Jul 2013 12:29:56 +0000 (08:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jul 2013 16:29:32 +0000 (09:29 -0700)
commite60d27c4d8b33ba20896b76b6558f061bc6460ff
tree2c0605fd7cc00b1e8176026e235026642ce5b86e
parent4b293492ae9ca87b4410fafae1fe2ea6eafb3c87
n_tty: Factor LNEXT processing from per-char i/o path

LNEXT processing accounts for ~15% of total cpu time in end-to-end
tty i/o; factor the lnext test/clear from the per-char i/o path.

Instead, attempt to immediately handle the literal next char if not
at the end of this received buffer; otherwise, handle the first char
of the next received buffer as the literal next char, then continue
with normal i/o.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c