]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
vt: Remove vc_panic_force_write
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 22 Aug 2018 08:54:03 +0000 (10:54 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 11 Sep 2018 12:11:51 +0000 (14:11 +0200)
It was only used by the panic support in fbcon, which is now gone.
Remove this now dead code too.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: Joe Perches <joe@perches.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Meng Xu <mengxu.gatech@gmail.com>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
Cc: Thomas Meyer <thomas@m3y3r.de>
Cc: Mike Frysinger <vapier@chromium.org>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Thierry Reding <treding@nvidia.com>
Cc: David Lechner <david@lechnology.com>
Cc: Philippe Ombredanne <pombredanne@nexb.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Kate Stewart <kstewart@linuxfoundation.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180822085405.10787-2-daniel.vetter@ffwll.ch
drivers/tty/vt/vt.c
drivers/video/fbdev/core/fbcon.c
include/linux/console_struct.h
include/linux/vt_kern.h

index 5f1183b0b89df3bc672ccf7299dc103dfddbf138..55370e651db31424db2330b80bd6bd4c4f9d02b8 100644 (file)
@@ -1004,9 +1004,7 @@ void redraw_screen(struct vc_data *vc, int is_switch)
                        clear_buffer_attributes(vc);
                }
 
-               /* Forcibly update if we're panicing */
-               if ((update && vc->vc_mode != KD_GRAPHICS) ||
-                   vt_force_oops_output(vc))
+               if (update && vc->vc_mode != KD_GRAPHICS)
                        do_update_region(vc, vc->vc_origin, vc->vc_screenbuf_size / 2);
        }
        set_cursor(vc);
@@ -1046,7 +1044,6 @@ static void visual_init(struct vc_data *vc, int num, int init)
        vc->vc_hi_font_mask = 0;
        vc->vc_complement_mask = 0;
        vc->vc_can_do_color = 0;
-       vc->vc_panic_force_write = false;
        vc->vc_cur_blink_ms = DEFAULT_CURSOR_BLINK_MS;
        vc->vc_sw->con_init(vc, init);
        if (!vc->vc_complement_mask)
@@ -2911,7 +2908,7 @@ static void vt_console_print(struct console *co, const char *b, unsigned count)
                goto quit;
        }
 
-       if (vc->vc_mode != KD_TEXT && !vt_force_oops_output(vc))
+       if (vc->vc_mode != KD_TEXT)
                goto quit;
 
        /* undraw cursor first */
@@ -4229,8 +4226,7 @@ void do_unblank_screen(int leaving_gfx)
                return;
        }
        vc = vc_cons[fg_console].d;
-       /* Try to unblank in oops case too */
-       if (vc->vc_mode != KD_TEXT && !vt_force_oops_output(vc))
+       if (vc->vc_mode != KD_TEXT)
                return; /* but leave console_blanked != 0 */
 
        if (blankinterval) {
@@ -4239,7 +4235,7 @@ void do_unblank_screen(int leaving_gfx)
        }
 
        console_blanked = 0;
-       if (vc->vc_sw->con_blank(vc, 0, leaving_gfx) || vt_force_oops_output(vc))
+       if (vc->vc_sw->con_blank(vc, 0, leaving_gfx))
                /* Low-level driver cannot restore -> do it ourselves */
                update_screen(vc);
        if (console_blank_hook)
index 9fd99681a7f215f872a424612e243f7188c52f07..8958ccc8b1ac397685a5e98c1ff9e361605db84e 100644 (file)
@@ -284,8 +284,7 @@ static inline int fbcon_is_inactive(struct vc_data *vc, struct fb_info *info)
        struct fbcon_ops *ops = info->fbcon_par;
 
        return (info->state != FBINFO_STATE_RUNNING ||
-               vc->vc_mode != KD_TEXT || ops->graphics) &&
-               !vt_force_oops_output(vc);
+               vc->vc_mode != KD_TEXT || ops->graphics);
 }
 
 static int get_color(struct vc_data *vc, struct fb_info *info,
index fea64f2692a052bea9064f19c723295ac3232c73..ab137f97ecbd0e300c8612c00e7c87aed91a7a76 100644 (file)
@@ -141,7 +141,6 @@ struct vc_data {
        struct uni_pagedir *vc_uni_pagedir;
        struct uni_pagedir **vc_uni_pagedir_loc; /* [!] Location of uni_pagedir variable for this console */
        struct uni_screen *vc_uni_screen;       /* unicode screen content */
-       bool vc_panic_force_write; /* when oops/panic this VC can accept forced output/blanking */
        /* additional information is in vt_kern.h */
 };
 
index 3fd07912909cddc74a30a5d3983d906563017e66..8dc77e40bc03875a3adfde0d85a8441a627ab4f0 100644 (file)
@@ -135,13 +135,6 @@ extern int do_unbind_con_driver(const struct consw *csw, int first, int last,
                             int deflt);
 int vty_init(const struct file_operations *console_fops);
 
-static inline bool vt_force_oops_output(struct vc_data *vc)
-{
-       if (oops_in_progress && vc->vc_panic_force_write  && panic_timeout >= 0)
-               return true;
-       return false;
-}
-
 extern char vt_dont_switch;
 extern int default_utf8;
 extern int global_cursor_default;