Commit b23bf1a4 authored by Jiri Slaby (SUSE)'s avatar Jiri Slaby (SUSE) Committed by Greg Kroah-Hartman

tty: vt: remove unused consw::con_flush_scrollback()

consw::con_flush_scrollback() is unused since commit 973c096f
(vgacon: remove software scrollback support). Drop it.
Signed-off-by: default avatar"Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Tested-by: Helge Deller <deller@gmx.de> # parisc STI console
Link: https://lore.kernel.org/r/20240122110401.7289-45-jirislaby@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f441aa3b
...@@ -888,21 +888,18 @@ static void flush_scrollback(struct vc_data *vc) ...@@ -888,21 +888,18 @@ static void flush_scrollback(struct vc_data *vc)
WARN_CONSOLE_UNLOCKED(); WARN_CONSOLE_UNLOCKED();
set_origin(vc); set_origin(vc);
if (vc->vc_sw->con_flush_scrollback) { if (!con_is_visible(vc))
vc->vc_sw->con_flush_scrollback(vc); return;
} else if (con_is_visible(vc)) {
/* /*
* When no con_flush_scrollback method is provided then the * The legacy way for flushing the scrollback buffer is to use a side
* legacy way for flushing the scrollback buffer is to use * effect of the con_switch method. We do it only on the foreground
* a side effect of the con_switch method. We do it only on * console as background consoles have no scrollback buffers in that
* the foreground console as background consoles have no * case and we obviously don't want to switch to them.
* scrollback buffers in that case and we obviously don't
* want to switch to them.
*/ */
hide_cursor(vc); hide_cursor(vc);
vc->vc_sw->con_switch(vc); vc->vc_sw->con_switch(vc);
set_cursor(vc); set_cursor(vc);
}
} }
/* /*
......
...@@ -96,10 +96,6 @@ struct consw { ...@@ -96,10 +96,6 @@ struct consw {
enum vc_intensity intensity, enum vc_intensity intensity,
bool blink, bool underline, bool reverse, bool italic); bool blink, bool underline, bool reverse, bool italic);
void (*con_invert_region)(struct vc_data *vc, u16 *p, int count); void (*con_invert_region)(struct vc_data *vc, u16 *p, int count);
/*
* Flush the video console driver's scrollback buffer
*/
void (*con_flush_scrollback)(struct vc_data *vc);
/* /*
* Prepare the console for the debugger. This includes, but is not * Prepare the console for the debugger. This includes, but is not
* limited to, unblanking the console, loading an appropriate * limited to, unblanking the console, loading an appropriate
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment