]> git.baikalelectronics.ru Git - kernel.git/commit
vt: keyboard, use tty_insert_flip_string in puts_queue
authorJiri Slaby <jslaby@suse.cz>
Thu, 29 Oct 2020 11:32:22 +0000 (12:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Nov 2020 15:43:39 +0000 (16:43 +0100)
commit4dffff0707f377e8ee94ef75ed4854f37a8528fb
tree8704546ea269b8f36514e01ec607f054929f1729
parent976355620e2759fcd19fd68a101ef6760028c61c
vt: keyboard, use tty_insert_flip_string in puts_queue

'puts_queue' currently loops over characters and employs the full tty
buffer machinery for every character. Do the buffer allocation only once
and copy all the character at once. This is achieved using
tty_insert_flip_string instead of loop+tty_insert_flip_char.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20201029113222.32640-17-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/keyboard.c