printk: console_is_usable: use console_srcu_read_flags
authorJohn Ogness <john.ogness@linutronix.de>
Wed, 16 Nov 2022 16:21:29 +0000 (17:27 +0106)
committerPetr Mladek <pmladek@suse.com>
Fri, 2 Dec 2022 10:25:00 +0000 (11:25 +0100)
commit12f1da5fc4c728dc690a2fe3f4197d62f3a6fa7b
tree3648bb752a3f2fb696821f9e1225ed8c1347996e
parenteb7f1ed2509c6223d960a7d69644a8eb506b13d0
printk: console_is_usable: use console_srcu_read_flags

All users of console_is_usable() are SRCU iterators. Use the
appropriate wrapper function to locklessly read the flags.

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/20221116162152.193147-18-john.ogness@linutronix.de
kernel/printk/printk.c