]> git.baikalelectronics.ru Git - kernel.git/commit
n_tty: Line copy to user buffer in canonical mode
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 13:14:17 +0000 (09:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:42:59 +0000 (16:42 -0700)
commit70813165709db6f35c87ec9abfb61b1fcaa9a7ef
tree9d92c06722c7200133366d088eea2bafd2a86c08
parent1c8d127bdb6eec4ea6b95b1dfcde3bc35d3b08be
n_tty: Line copy to user buffer in canonical mode

Instead of pushing one char per loop, pre-compute the data length
to copy and copy all at once.

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