panic: Separate sysctl logic from CONFIG_SMP
authorKees Cook <keescook@chromium.org>
Thu, 17 Nov 2022 23:43:21 +0000 (15:43 -0800)
committerKees Cook <keescook@chromium.org>
Thu, 1 Dec 2022 16:50:38 +0000 (08:50 -0800)
commit9360d035a579d95d1e76c471061b9065b18a0eb1
tree0b53f078ab1533d9539599807a5da5c99b0abfba
parent25226df4b9be7f6d5d722af5b75e86e76e5c3a80
panic: Separate sysctl logic from CONFIG_SMP

In preparation for adding more sysctls directly in kernel/panic.c, split
CONFIG_SMP from the logic that adds sysctls.

Cc: Petr Mladek <pmladek@suse.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: tangmeng <tangmeng@uniontech.com>
Cc: "Guilherme G. Piccoli" <gpiccoli@igalia.com>
Cc: Tiezhu Yang <yangtiezhu@loongson.cn>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20221117234328.594699-1-keescook@chromium.org
kernel/panic.c