diff options
| author | John Ogness <[email protected]> | 2024-02-07 13:40:55 +0000 |
|---|---|---|
| committer | Petr Mladek <[email protected]> | 2024-02-07 16:23:18 +0000 |
| commit | 0ab7cdd00491b532591ef065be706301de7e448f (patch) | |
| tree | 77e12dae04af2aa41e4b88feecb5c78086f1d5fc /lib/dump_stack.c | |
| parent | printk: ringbuffer: Clarify special lpos values (diff) | |
| download | kernel-0ab7cdd00491b532591ef065be706301de7e448f.tar.gz kernel-0ab7cdd00491b532591ef065be706301de7e448f.zip | |
printk: For @suppress_panic_printk check for other CPU in panic
Currently @suppress_panic_printk is checked along with
non-matching @panic_cpu and current CPU. This works
because @suppress_panic_printk is only set when
panic_in_progress() is true.
Rather than relying on the @suppress_panic_printk semantics,
use the concise helper function other_cpu_in_progress(). The
helper function exists to avoid open coding such tests.
Signed-off-by: John Ogness <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Petr Mladek <[email protected]>
Diffstat (limited to 'lib/dump_stack.c')
0 files changed, 0 insertions, 0 deletions
