]> git.baikalelectronics.ru Git - kernel.git/commit
vt: Perform safe console erase only once
authorNicolas Pitre <nicolas.pitre@linaro.org>
Mon, 14 May 2018 15:53:04 +0000 (11:53 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 16:01:16 +0000 (18:01 +0200)
commitbf962a9378f93e19c60686d2593b093990d2039f
tree21001a5011cdf3b6a1f066b290a22d1989708116
parent5213803e7e0f08081f434b035c40136a7543df65
vt: Perform safe console erase only once

Commit 164fee68ac ("tty: Clean console safely") added code to clear
both the scrollback buffer and the screen with "\e[3J", then execution
falls through into the code to simply clear the screen. This means
scr_memsetw() and the console driver update callback are called twice
on the whole screen buffer. Let's reorganize the code so the same work
is not performed twice needlessly.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c