diff options
author | John Ogness <john.ogness@linutronix.de> | 2022-11-16 17:21:15 +0100 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2022-12-02 11:24:59 +0100 |
commit | 6c4afa79147e4aa86665795695ac4a5f25e73176 (patch) | |
tree | 303743239f481d5eeb6ae90f33ec164de2e48a3a /scripts | |
parent | printk: Convert console_drivers list to hlist (diff) | |
download | linux-6c4afa79147e4aa86665795695ac4a5f25e73176.tar.xz linux-6c4afa79147e4aa86665795695ac4a5f25e73176.zip |
printk: Prepare for SRCU console list protection
Provide an NMI-safe SRCU protected variant to walk the console list.
Note that all console fields are now set before adding the console
to the list to avoid the console becoming visible by SCRU readers
before being fully initialized.
This is a preparatory change for a new console infrastructure which
operates independent of the console BKL.
Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20221116162152.193147-4-john.ogness@linutronix.de
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions