kernel/time: move timer sysctls to its own file
Subsystems (3)
PATCH v6 1/1 kernel/time: move timer 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.
So move the timer_migration sysctls to its own file.
Signed-off-by tangmeng <[email protected]>
--- include/linux/timer.h | 8 ------- kernel/sysctl.c | 11 --------- kernel/time/timer.c | 54 ++++++++++++++++++++++++++++++++----------- 3 files changed, 40 insertions(+), 33 deletions(-)
include/linux/timer.h +0 -8
@@ -196,14 +196,6 @@ extern void init_timers(void);struct hrtimer ;extern enum hrtimer_restart it_real_fn (struct hrtimer *); -#if defined(CONFIG_SMP ) && defined(CONFIG_NO_HZ_COMMON ) -struct ctl_table ; - -extern unsigned int sysctl_timer_migration; -int timer_migration_handler (struct ctl_table *table,int write, -void *buffer,size_t *lenp,loff_t *ppos); -#endif -unsigned long __round_jiffies (unsigned long j,int cpu);unsigned long __round_jiffies_relative (unsigned long j,int cpu);unsigned long round_jiffies (unsigned long j);
kernel/sysctl.c +0 -11
@@ -2656,17 +2656,6 @@ static struct ctl_table kern_table[] = { .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_ONE, }, -#if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ_COMMON) - { - .procname = "timer_migration", - .data = &sysctl_timer_migration, - .maxlen = sizeof(unsigned int), - .mode = 0644, - .proc_handler = timer_migration_handler, - .extra1 = SYSCTL_ZERO, - .extra2 = SYSCTL_ONE, - }, -#endif#ifdef CONFIG_BPF_SYSCALL { .procname = "unprivileged_bpf_disabled",
kernel/time/timer.c +40 -14
78 lines not on this page · raw message
Signature · 1 line
2.20.1