]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd351ec8ec739c0cb10156479f69b174e64d184cb
tree2c0605fd7cc00b1e8176026e235026642ce5b86e
parentff895c8877e8eeb978ed31c373448313817f88e0
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