printk: cpu sync always disable interrupts
authorJohn Ogness <john.ogness@linutronix.de>
Thu, 21 Apr 2022 21:22:37 +0000 (23:28 +0206)
committerPetr Mladek <pmladek@suse.com>
Fri, 22 Apr 2022 19:30:57 +0000 (21:30 +0200)
commitf5343321b71ac0a1112adeab0ff90b239bad3a83
treee793944805460c58b5cc61e7dd3a39696b727934
parentfaebd693c59387b7b765fab64b543855e15a91b4
printk: cpu sync always disable interrupts

The CPU sync functions are a NOP for !CONFIG_SMP. But for
!CONFIG_SMP they still need to disable interrupts in order to
preserve context within the CPU sync sections.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20220421212250.565456-3-john.ogness@linutronix.de
include/linux/printk.h