mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
vt: Remove vc_panic_force_write
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 <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Kees Cook <[email protected]> Cc: Joe Perches <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Meng Xu <[email protected]> Cc: Nicolas Pitre <[email protected]> Cc: Thomas Meyer <[email protected]> Cc: Mike Frysinger <[email protected]> Cc: Bartlomiej Zolnierkiewicz <[email protected]> Cc: Hans de Goede <[email protected]> Cc: Thierry Reding <[email protected]> Cc: David Lechner <[email protected]> Cc: Philippe Ombredanne <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Kate Stewart <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
This commit is contained in:
parent
04cfcc7ab3
commit
8d7fc2994f
4 changed files with 5 additions and 18 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue