diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index c5ab6af20cd7..a16902f32e6a 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -135,7 +135,9 @@ extern int sched_interactive; extern int sched_iso_cpu; extern int sched_yield_type; #endif -#ifdef CONFIG_PRINTK +extern int hrtimer_granularity_us; +extern int hrtimeout_min_us; +#if defined(CONFIG_PRINTK) || defined(CONFIG_SCHED_MUQSS) static int ten_thousand = 10000; #endif #ifdef CONFIG_PERF_EVENTS @@ -1078,6 +1080,24 @@ static struct ctl_table kern_table[] = { .extra2 = &two, }, #endif + { + .procname = "hrtimer_granularity_us", + .data = &hrtimer_granularity_us, + .maxlen = sizeof(int), + .mode = 0644, + .proc_handler = &proc_dointvec_minmax, + .extra1 = &one, + .extra2 = &ten_thousand, + }, + { + .procname = "hrtimeout_min_us", + .data = &hrtimeout_min_us, + .maxlen = sizeof(int), + .mode = 0644, + .proc_handler = &proc_dointvec_minmax, + .extra1 = &one, + .extra2 = &ten_thousand, + }, #if defined(CONFIG_S390) && defined(CONFIG_SMP) { .procname = "spin_retry", |