diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:03 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:03 -0400 |
commit | a25707f3aef9cf68c341eba5960d580f364e4e6f (patch) | |
tree | 77f13a0d32f68217cf6be32b1ab755bf7c1c0665 /kernel/sched_fair.c | |
parent | 8ebc91d93669af39dbed50914d7daf457eeb43be (diff) |
sched: remove precise CPU load
CPU load calculations are statistical anyway, and there's little benefit
from having it calculated on every scheduling event. So remove this code,
it gets rid of a divide from the scheduler wakeup and context-switch
fastpath.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 2138c40f4836..105d57b41aa2 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -94,16 +94,14 @@ enum { | |||
94 | SCHED_FEAT_FAIR_SLEEPERS = 1, | 94 | SCHED_FEAT_FAIR_SLEEPERS = 1, |
95 | SCHED_FEAT_SLEEPER_AVG = 2, | 95 | SCHED_FEAT_SLEEPER_AVG = 2, |
96 | SCHED_FEAT_SLEEPER_LOAD_AVG = 4, | 96 | SCHED_FEAT_SLEEPER_LOAD_AVG = 4, |
97 | SCHED_FEAT_PRECISE_CPU_LOAD = 8, | 97 | SCHED_FEAT_START_DEBIT = 8, |
98 | SCHED_FEAT_START_DEBIT = 16, | 98 | SCHED_FEAT_SKIP_INITIAL = 16, |
99 | SCHED_FEAT_SKIP_INITIAL = 32, | ||
100 | }; | 99 | }; |
101 | 100 | ||
102 | const_debug unsigned int sysctl_sched_features = | 101 | const_debug unsigned int sysctl_sched_features = |
103 | SCHED_FEAT_FAIR_SLEEPERS *1 | | 102 | SCHED_FEAT_FAIR_SLEEPERS *1 | |
104 | SCHED_FEAT_SLEEPER_AVG *0 | | 103 | SCHED_FEAT_SLEEPER_AVG *0 | |
105 | SCHED_FEAT_SLEEPER_LOAD_AVG *1 | | 104 | SCHED_FEAT_SLEEPER_LOAD_AVG *1 | |
106 | SCHED_FEAT_PRECISE_CPU_LOAD *1 | | ||
107 | SCHED_FEAT_START_DEBIT *1 | | 105 | SCHED_FEAT_START_DEBIT *1 | |
108 | SCHED_FEAT_SKIP_INITIAL *0; | 106 | SCHED_FEAT_SKIP_INITIAL *0; |
109 | 107 | ||