]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3519feb10bf6690dd428e3ec7e1f896a41c8362f
treed3622fbb8a88f55aa8223c343e6dcb9b81d6740c
parent8e3d652f3615baa4a08eca4d664637656e00ed1d
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