diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index e5cc53514caa..d10406e5fdfe 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -251,6 +251,8 @@ static int min_sched_granularity_ns = 100000; /* 100 usecs */ | |||
251 | static int max_sched_granularity_ns = NSEC_PER_SEC; /* 1 second */ | 251 | static int max_sched_granularity_ns = NSEC_PER_SEC; /* 1 second */ |
252 | static int min_wakeup_granularity_ns; /* 0 usecs */ | 252 | static int min_wakeup_granularity_ns; /* 0 usecs */ |
253 | static int max_wakeup_granularity_ns = NSEC_PER_SEC; /* 1 second */ | 253 | static int max_wakeup_granularity_ns = NSEC_PER_SEC; /* 1 second */ |
254 | static int min_sched_tunable_scaling = SCHED_TUNABLESCALING_NONE; | ||
255 | static int max_sched_tunable_scaling = SCHED_TUNABLESCALING_END-1; | ||
254 | #endif | 256 | #endif |
255 | 257 | ||
256 | static struct ctl_table kern_table[] = { | 258 | static struct ctl_table kern_table[] = { |
@@ -306,6 +308,18 @@ static struct ctl_table kern_table[] = { | |||
306 | }, | 308 | }, |
307 | { | 309 | { |
308 | .ctl_name = CTL_UNNUMBERED, | 310 | .ctl_name = CTL_UNNUMBERED, |
311 | .procname = "sched_tunable_scaling", | ||
312 | .data = &sysctl_sched_tunable_scaling, | ||
313 | .maxlen = sizeof(enum sched_tunable_scaling), | ||
314 | .mode = 0644, | ||
315 | .proc_handler = &proc_dointvec_minmax, | ||
316 | .strategy = &sysctl_intvec, | ||
317 | .extra1 = &min_sched_tunable_scaling, | ||
318 | .extra2 = &max_sched_tunable_scaling, | ||
319 | }, | ||
320 | |||
321 | { | ||
322 | .ctl_name = CTL_UNNUMBERED, | ||
309 | .procname = "sched_shares_thresh", | 323 | .procname = "sched_shares_thresh", |
310 | .data = &sysctl_sched_shares_thresh, | 324 | .data = &sysctl_sched_shares_thresh, |
311 | .maxlen = sizeof(unsigned int), | 325 | .maxlen = sizeof(unsigned int), |