summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authortangmeng <tangmeng@uniontech.com>2023-01-24 10:50:52 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-01 08:27:20 +0100
commit191f1f1f6a424f13597722ca65beb8341857785c (patch)
tree29c6f0615865ba7ffe06046f3d39b2e2c59032ce /include
parent654f6e851271d12423f4d6bdb14b71f213289828 (diff)
downloadlinux-191f1f1f6a424f13597722ca65beb8341857785c.tar.gz
linux-191f1f1f6a424f13597722ca65beb8341857785c.tar.bz2
linux-191f1f1f6a424f13597722ca65beb8341857785c.zip
kernel/panic: move panic sysctls to its own file
commit 9df918698408fd914493aba0b7858fef50eba63a upstream. kernel/sysctl.c is a kitchen sink where everyone leaves their dirty dishes, this makes it very difficult to maintain. To help with this maintenance let's start by moving sysctls to places where they actually belong. The proc sysctl maintainers do not want to know what sysctl knobs you wish to add for your own piece of code, we just care about the core logic. All filesystem syctls now get reviewed by fs folks. This commit follows the commit of fs, move the oops_all_cpu_backtrace sysctl to its own file, kernel/panic.c. Signed-off-by: tangmeng <tangmeng@uniontech.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org> Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/panic.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/panic.h b/include/linux/panic.h
index f5844908a089..e71161da69c4 100644
--- a/include/linux/panic.h
+++ b/include/linux/panic.h
@@ -15,12 +15,6 @@ extern void oops_enter(void);
extern void oops_exit(void);
extern bool oops_may_print(void);
-#ifdef CONFIG_SMP
-extern unsigned int sysctl_oops_all_cpu_backtrace;
-#else
-#define sysctl_oops_all_cpu_backtrace 0
-#endif /* CONFIG_SMP */
-
extern int panic_timeout;
extern unsigned long panic_print;
extern int panic_on_oops;