diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 9029690f4fae..6ace893c17c9 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -222,8 +222,19 @@ static ctl_table kern_table[] = { | |||
222 | #ifdef CONFIG_SCHED_DEBUG | 222 | #ifdef CONFIG_SCHED_DEBUG |
223 | { | 223 | { |
224 | .ctl_name = CTL_UNNUMBERED, | 224 | .ctl_name = CTL_UNNUMBERED, |
225 | .procname = "sched_granularity_ns", | 225 | .procname = "sched_min_granularity_ns", |
226 | .data = &sysctl_sched_granularity, | 226 | .data = &sysctl_sched_min_granularity, |
227 | .maxlen = sizeof(unsigned int), | ||
228 | .mode = 0644, | ||
229 | .proc_handler = &proc_dointvec_minmax, | ||
230 | .strategy = &sysctl_intvec, | ||
231 | .extra1 = &min_sched_granularity_ns, | ||
232 | .extra2 = &max_sched_granularity_ns, | ||
233 | }, | ||
234 | { | ||
235 | .ctl_name = CTL_UNNUMBERED, | ||
236 | .procname = "sched_latency_ns", | ||
237 | .data = &sysctl_sched_latency, | ||
227 | .maxlen = sizeof(unsigned int), | 238 | .maxlen = sizeof(unsigned int), |
228 | .mode = 0644, | 239 | .mode = 0644, |
229 | .proc_handler = &proc_dointvec_minmax, | 240 | .proc_handler = &proc_dointvec_minmax, |
@@ -283,6 +294,15 @@ static ctl_table kern_table[] = { | |||
283 | .mode = 0644, | 294 | .mode = 0644, |
284 | .proc_handler = &proc_dointvec, | 295 | .proc_handler = &proc_dointvec, |
285 | }, | 296 | }, |
297 | { | ||
298 | .ctl_name = CTL_UNNUMBERED, | ||
299 | .procname = "sched_features", | ||
300 | .data = &sysctl_sched_features, | ||
301 | .maxlen = sizeof(unsigned int), | ||
302 | .mode = 0644, | ||
303 | .proc_handler = &proc_dointvec, | ||
304 | }, | ||
305 | #endif | ||
286 | #ifdef CONFIG_PROVE_LOCKING | 306 | #ifdef CONFIG_PROVE_LOCKING |
287 | { | 307 | { |
288 | .ctl_name = CTL_UNNUMBERED, | 308 | .ctl_name = CTL_UNNUMBERED, |
@@ -304,15 +324,6 @@ static ctl_table kern_table[] = { | |||
304 | }, | 324 | }, |
305 | #endif | 325 | #endif |
306 | { | 326 | { |
307 | .ctl_name = CTL_UNNUMBERED, | ||
308 | .procname = "sched_features", | ||
309 | .data = &sysctl_sched_features, | ||
310 | .maxlen = sizeof(unsigned int), | ||
311 | .mode = 0644, | ||
312 | .proc_handler = &proc_dointvec, | ||
313 | }, | ||
314 | #endif | ||
315 | { | ||
316 | .ctl_name = KERN_PANIC, | 327 | .ctl_name = KERN_PANIC, |
317 | .procname = "panic", | 328 | .procname = "panic", |
318 | .data = &panic_timeout, | 329 | .data = &panic_timeout, |