diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2007-10-15 11:00:05 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:05 -0400 |
commit | 94dfb5e75ef59068a8cf68fa6e18f25ebdcd20b9 (patch) | |
tree | 3ff5c162ffbc0e796db250f8a0562292118829f3 /kernel/sched.c | |
parent | 28a1f6fa2f7ecec7e5da28b03a24abbecbd2e864 (diff) |
sched: add tree based averages
add support for tree based vruntime averages.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index bf85b4b281c5..198b07a6d038 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -399,6 +399,8 @@ enum { | |||
399 | SCHED_FEAT_SLEEPER_AVG = 4, | 399 | SCHED_FEAT_SLEEPER_AVG = 4, |
400 | SCHED_FEAT_SLEEPER_LOAD_AVG = 8, | 400 | SCHED_FEAT_SLEEPER_LOAD_AVG = 8, |
401 | SCHED_FEAT_START_DEBIT = 16, | 401 | SCHED_FEAT_START_DEBIT = 16, |
402 | SCHED_FEAT_USE_TREE_AVG = 32, | ||
403 | SCHED_FEAT_APPROX_AVG = 64, | ||
402 | }; | 404 | }; |
403 | 405 | ||
404 | const_debug unsigned int sysctl_sched_features = | 406 | const_debug unsigned int sysctl_sched_features = |
@@ -406,7 +408,9 @@ const_debug unsigned int sysctl_sched_features = | |||
406 | SCHED_FEAT_NEW_FAIR_SLEEPERS *1 | | 408 | SCHED_FEAT_NEW_FAIR_SLEEPERS *1 | |
407 | SCHED_FEAT_SLEEPER_AVG *0 | | 409 | SCHED_FEAT_SLEEPER_AVG *0 | |
408 | SCHED_FEAT_SLEEPER_LOAD_AVG *1 | | 410 | SCHED_FEAT_SLEEPER_LOAD_AVG *1 | |
409 | SCHED_FEAT_START_DEBIT *1; | 411 | SCHED_FEAT_START_DEBIT *1 | |
412 | SCHED_FEAT_USE_TREE_AVG *0 | | ||
413 | SCHED_FEAT_APPROX_AVG *0; | ||
410 | 414 | ||
411 | #define sched_feat(x) (sysctl_sched_features & SCHED_FEAT_##x) | 415 | #define sched_feat(x) (sysctl_sched_features & SCHED_FEAT_##x) |
412 | 416 | ||