Commit 4b4ecd9
vt: Perform safe console erase only once
Commit f8df13e ("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>1 parent 339c7a8 commit 4b4ecd9
1 file changed
+7
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1178 | 1178 | | |
1179 | 1179 | | |
1180 | 1180 | | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
1189 | 1181 | | |
| 1182 | + | |
1190 | 1183 | | |
1191 | 1184 | | |
1192 | 1185 | | |
1193 | 1186 | | |
1194 | 1187 | | |
1195 | 1188 | | |
1196 | 1189 | | |
1197 | | - | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
1198 | 1196 | | |
1199 | 1197 | | |
1200 | 1198 | | |
| |||
0 commit comments