OSDN Git Service

vgacon: comment on vga_rolled_over
authorJiri Slaby <jslaby@suse.cz>
Tue, 2 Mar 2021 06:21:34 +0000 (07:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:34:06 +0000 (09:34 +0100)
Long time ago, I figured out what this number is good for and documented
that locally. But never submitted, so do it now.

Cc: dri-devel@lists.freedesktop.org
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210302062214.29627-4-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/console/vgacon.c

index 962c12b..0d26e82 100644 (file)
@@ -96,7 +96,7 @@ static bool           vga_is_gfx;
 static bool            vga_512_chars;
 static int             vga_video_font_height;
 static int             vga_scan_lines          __read_mostly;
-static unsigned int    vga_rolled_over;
+static unsigned int    vga_rolled_over; /* last vc_origin offset before wrap */
 
 static bool vgacon_text_mode_force;
 static bool vga_hardscroll_enabled;