]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit448ce51a9659ba3cd1956fff70df9273ce239b07
tree4728005e56587fa843d7b22975ba5cfce50eb011
parentfd95b4f11ff9daaa40c70c09548e38b8915e2dd6
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