printk: Add this_cpu_in_panic()
authorJohn Ogness <john.ogness@linutronix.de>
Wed, 7 Feb 2024 13:40:56 +0000 (14:46 +0106)
committerPetr Mladek <pmladek@suse.com>
Wed, 7 Feb 2024 16:23:18 +0000 (17:23 +0100)
commit36652d0f3bf34899e82d31a5fa9e2bdd02fd6381
tree0d82d8d69b7ca76722ab537adab5a18b0fd30dd5
parent0ab7cdd00491b532591ef065be706301de7e448f
printk: Add this_cpu_in_panic()

There is already panic_in_progress() and other_cpu_in_panic(),
but checking if the current CPU is the panic CPU must still be
open coded.

Add this_cpu_in_panic() to complete the set.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20240207134103.1357162-8-john.ogness@linutronix.de
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/printk/internal.h
kernel/printk/printk.c