diff options
author | Paul Turner <pjt@google.com> | 2010-11-15 18:47:06 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-11-18 07:27:49 -0500 |
commit | a7a4f8a752ec734b2eab904fc863d5dc873de338 (patch) | |
tree | 18b69c4cc0fc10cf6f0fe429308b25086942d921 /kernel/sysctl.c | |
parent | 67e86250f8ea7b8f7da53ac25ea73c6bd71f5cd9 (diff) |
sched: Add sysctl_sched_shares_window
Introduce a new sysctl for the shares window and disambiguate it from
sched_time_avg.
A 10ms window appears to be a good compromise between accuracy and performance.
Signed-off-by: Paul Turner <pjt@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20101115234938.112173964@google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 3132b25193db..9b520d74f052 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -333,6 +333,13 @@ static struct ctl_table kern_table[] = { | |||
333 | .proc_handler = proc_dointvec, | 333 | .proc_handler = proc_dointvec, |
334 | }, | 334 | }, |
335 | { | 335 | { |
336 | .procname = "sched_shares_window", | ||
337 | .data = &sysctl_sched_shares_window, | ||
338 | .maxlen = sizeof(unsigned int), | ||
339 | .mode = 0644, | ||
340 | .proc_handler = proc_dointvec, | ||
341 | }, | ||
342 | { | ||
336 | .procname = "timer_migration", | 343 | .procname = "timer_migration", |
337 | .data = &sysctl_timer_migration, | 344 | .data = &sysctl_timer_migration, |
338 | .maxlen = sizeof(unsigned int), | 345 | .maxlen = sizeof(unsigned int), |