summaryrefslogtreecommitdiff
path: root/drivers/tty/serdev/core.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2020-10-29 12:32:22 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-04 16:43:39 +0100
commitc35f638fc2adbb9c439ce68b559d406387cbdbe8 (patch)
tree8704546ea269b8f36514e01ec607f054929f1729 /drivers/tty/serdev/core.c
parent2389cdc36007ba28ebe6640d7dd5e3494318a909 (diff)
downloadlinux-c35f638fc2adbb9c439ce68b559d406387cbdbe8.tar.gz
linux-c35f638fc2adbb9c439ce68b559d406387cbdbe8.tar.bz2
linux-c35f638fc2adbb9c439ce68b559d406387cbdbe8.zip
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>
Diffstat (limited to 'drivers/tty/serdev/core.c')
0 files changed, 0 insertions, 0 deletions