summaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorZhen Ni <nizhen@uniontech.com>2022-02-15 12:45:58 +0100
committerLuis Chamberlain <mcgrof@kernel.org>2022-04-06 22:43:43 +0200
commitf5ef06d58be8311a9425e6a54a053ecb350952f3 (patch)
tree770eec66bcbbfe1ef7d8d6722bf7c9c8c23c2524 /kernel/sysctl.c
parentsched: Move child_runs_first sysctls to fair.c (diff)
downloadlinux-f5ef06d58be8311a9425e6a54a053ecb350952f3.tar.xz
linux-f5ef06d58be8311a9425e6a54a053ecb350952f3.zip
sched: Move schedstats sysctls to core.c
move schedstats sysctls to core.c and use the new register_sysctl_init() to register the sysctl interface. Signed-off-by: Zhen Ni <nizhen@uniontech.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to '')
-rw-r--r--kernel/sysctl.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 6bbb8e1af675..fc0eeca20718 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1659,17 +1659,6 @@ int proc_do_static_key(struct ctl_table *table, int write,
}
static struct ctl_table kern_table[] = {
-#ifdef CONFIG_SCHEDSTATS
- {
- .procname = "sched_schedstats",
- .data = NULL,
- .maxlen = sizeof(unsigned int),
- .mode = 0644,
- .proc_handler = sysctl_schedstats,
- .extra1 = SYSCTL_ZERO,
- .extra2 = SYSCTL_ONE,
- },
-#endif /* CONFIG_SCHEDSTATS */
#ifdef CONFIG_TASK_DELAY_ACCT
{
.procname = "task_delayacct",