summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.com>2023-01-19 14:56:38 +0100
committerPetr Mladek <pmladek@suse.com>2023-01-19 14:56:38 +0100
commit21493c6e96e550509ead696ecca9f0d7196ee91c (patch)
tree6c6a106d6459a7b140e61266dffd66c960dd298e /kernel
parent98d0052d0d9dcd5323833482712b5799ed0bbb0b (diff)
parent4fe59a130c112460626a6a8b9232aa580d9b8efc (diff)
downloadlinux-21493c6e96e550509ead696ecca9f0d7196ee91c.tar.bz2
Merge branch 'rework/console-list-lock' into for-linus
Diffstat (limited to 'kernel')
-rw-r--r--kernel/printk/printk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 7decf1e9c486..a5ed2e53547c 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -123,6 +123,7 @@ bool console_srcu_read_lock_is_held(void)
{
return srcu_read_lock_held(&console_srcu);
}
+EXPORT_SYMBOL(console_srcu_read_lock_is_held);
#endif
enum devkmsg_log_bits {
@@ -1891,6 +1892,7 @@ static void console_lock_spinning_enable(void)
/**
* console_lock_spinning_disable_and_check - mark end of code where another
* thread was able to busy wait and check if there is a waiter
+ * @cookie: cookie returned from console_srcu_read_lock()
*
* This is called at the end of the section where spinning is allowed.
* It has two functions. First, it is a signal that it is no longer