mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
tty/vt: Remove printable variable
Every since the 0.99.7A release when console_register() was introduced it's become impossible to call vt_console_print (called console_print() back then still) directly. Which means the initialization issue this variable protected against is no more. Give it a send off with style and let it rest in peace. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jiri Slaby <jirislaby@kernel.org> Cc: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com> Cc: nick black <dankamongmen@gmail.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Cc: Yangxi Xiang <xyangxi5@gmail.com> Cc: Xuezhi Zhang <zhangxuezhi1@coolpad.com> Reviewed-by: Jiri Slaby <jirislaby@kernel.org> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: https://lore.kernel.org/r/20220826202419.198535-1-daniel.vetter@ffwll.ch Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8b470f6ed8
commit
f26fd926cc
@ -157,7 +157,6 @@ static void set_palette(struct vc_data *vc);
|
||||
|
||||
#define vt_get_kmsg_redirect() vt_kmsg_redirect(-1)
|
||||
|
||||
static int printable; /* Is console ready for printing? */
|
||||
int default_utf8 = true;
|
||||
module_param(default_utf8, int, S_IRUGO | S_IWUSR);
|
||||
int global_cursor_default = -1;
|
||||
@ -3085,8 +3084,6 @@ static void vt_console_print(struct console *co, const char *b, unsigned count)
|
||||
int kmsg_console;
|
||||
|
||||
/* console busy or not yet initialized */
|
||||
if (!printable)
|
||||
return;
|
||||
if (!spin_trylock(&printing_lock))
|
||||
return;
|
||||
|
||||
@ -3537,7 +3534,6 @@ static int __init con_init(void)
|
||||
pr_info("Console: %s %s %dx%d\n",
|
||||
vc->vc_can_do_color ? "colour" : "mono",
|
||||
display_desc, vc->vc_cols, vc->vc_rows);
|
||||
printable = 1;
|
||||
|
||||
console_unlock();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user