]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit40d3ff3b7bd0ce0052c758c3c497a08a3df7016d
treee793944805460c58b5cc61e7dd3a39696b727934
parentadb748d37a8c9bb2dad8e305cb6e3e7f6538fceb
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