kernel/reboot: move reboot sysctls to its own file
authortangmeng <tangmeng@uniontech.com>
Thu, 17 Feb 2022 04:23:21 +0000 (12:23 +0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Fri, 18 Feb 2022 18:10:38 +0000 (10:10 -0800)
commitdbef55dfc1e9c14edacdcd6d22489370ae60f6cb
tree8645dcb1ff16a2e162a8ee5c1b0a20e889868a53
parentf31483d6edf09bc1226a3b08afe31cf4ea44a4d5
kernel/reboot: move reboot sysctls to its own file

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 poweroff_cmd and ctrl-alt-del
sysctls to its own file, kernel/reboot.c.

Signed-off-by: tangmeng <tangmeng@uniontech.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
include/linux/reboot.h
kernel/reboot.c
kernel/sysctl.c