latencytop: move latencytop sysctl to its own file
Subsystems (2)
PATCH 1/1 latencytop: move latencytop sysctl to its own file
From: liaohua <[email protected]>
This moves latencytop sysctl to kernel/latencytop.c
Signed-off-by liaohua <[email protected]>
--- include/linux/latencytop.h | 3 --- kernel/latencytop.c | 41 +++++++++++++++++++++++++++++------------ kernel/sysctl.c | 10 ---------- 3 files changed, 29 insertions(+), 25 deletions(-)
include/linux/latencytop.h +0 -3
@@ -38,9 +38,6 @@ account_scheduler_latency(struct task_struct *task, int usecs, int inter)void clear_tsk_latency_tracing (struct task_struct *p); -int sysctl_latencytop (struct ctl_table *table,int write,void *buffer, -size_t *lenp,loff_t *ppos); -#else static inline void
kernel/latencytop.c +29 -12
59 lines not on this page · raw message
kernel/sysctl.c +0 -10
@@ -65,7 +65,6 @@#include <linux/bpf.h> #include <linux/mount.h> #include <linux/userfaultfd_k.h> -#include <linux/latencytop.h> #include <linux/pid.h> #include <linux/delayacct.h>
@@ -1824,15 +1823,6 @@ static struct ctl_table kern_table[] = { .extra2 = SYSCTL_ONE, },#endif -#ifdef CONFIG_LATENCYTOP - { - .procname = "latencytop", - .data = &latencytop_enabled, - .maxlen = sizeof(int), - .mode = 0644, - .proc_handler = sysctl_latencytop, - }, -#endif#ifdef CONFIG_BLK_DEV_INITRD { .procname = "real-root-dev",
Signature · 1 line
2.12.3