summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2022-11-16 17:27:15 +0106
committerPetr Mladek <pmladek@suse.com>2022-12-02 11:24:59 +0100
commit6c4afa79147e4aa86665795695ac4a5f25e73176 (patch)
tree303743239f481d5eeb6ae90f33ec164de2e48a3a /.clang-format
parentd9a4af5690e26afa8a2eb83c575d3a9ef52cde1d (diff)
downloadlwn-6c4afa79147e4aa86665795695ac4a5f25e73176.tar.gz
lwn-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 '.clang-format')
-rw-r--r--.clang-format1
1 files changed, 1 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
index 1247d54f9e49..04a675b56b57 100644
--- a/.clang-format
+++ b/.clang-format
@@ -222,6 +222,7 @@ ForEachMacros:
- 'for_each_component_dais'
- 'for_each_component_dais_safe'
- 'for_each_console'
+ - 'for_each_console_srcu'
- 'for_each_cpu'
- 'for_each_cpu_and'
- 'for_each_cpu_not'