OSDN Git Service

printk: remove @console_locked
authorJohn Ogness <john.ogness@linutronix.de>
Thu, 21 Apr 2022 21:22:50 +0000 (23:28 +0206)
committerPetr Mladek <pmladek@suse.com>
Tue, 26 Apr 2022 12:33:59 +0000 (14:33 +0200)
commitab406816fca009349b89cbde885daf68a8c77e33
tree4728005e56587fa843d7b22975ba5cfce50eb011
parent8e274732115f63c1d09136284431b3555bd5cc56
printk: remove @console_locked

The static global variable @console_locked is used to help debug
VT code to make sure that certain code paths are running with
the console_lock held. However, this information is also available
with the static global variable @console_kthreads_blocked (for
locking via console_lock()), and the static global variable
@console_kthreads_active (for locking via console_trylock()).

Remove @console_locked and update is_console_locked() to use the
alternative variables.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20220421212250.565456-16-john.ogness@linutronix.de
kernel/printk/printk.c