console: Add callback to flush scrollback buffer to consw struct
authorManuel Schölling <manuel.schoelling@gmx.de>
Fri, 13 Jan 2017 20:07:56 +0000 (21:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2017 10:54:02 +0000 (11:54 +0100)
commitbcd375f7f71f7106c97516bf5395149954ef8810
treed3622fbb8a88f55aa8223c343e6dcb9b81d6740c
parent66da39eb91b42ab70dd49ef0b9ac5f4cfa76c9c3
console: Add callback to flush scrollback buffer to consw struct

This new callback is in preparation for persistent scrollback buffer
support for VGA consoles.
With a single scrollback buffer for all consoles, we could flush the
buffer just by invocating consw->con_switch(). But when each VGA console
has its own scrollback buffer, we need a new callback to tell the
video console driver which buffer to flush.

Signed-off-by: Manuel Schölling <manuel.schoelling@gmx.de>
Reviewed-by: Andrey Utkin <andrey_utkin@fastmail.com>
Tested-by: Andrey Utkin <andrey_utkin@fastmail.com>
Tested-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c
drivers/video/console/vgacon.c
include/linux/console.h