summaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2008-06-27 13:41:33 +0200
committerIngo Molnar <mingo@elte.hu>2008-06-27 14:31:44 +0200
commit93b75217df39e6d75889cc6f8050343286aff4a5 (patch)
treed3091afd2b88aa9732ff63b3a839bdec358aef7d /kernel/sched.c
parentcb5ef42a03a13f95a9ea94e6cda4f7a47497871f (diff)
downloadop-kernel-dev-93b75217df39e6d75889cc6f8050343286aff4a5.zip
op-kernel-dev-93b75217df39e6d75889cc6f8050343286aff4a5.tar.gz
sched: disable source/target_load bias
The bias given by source/target_load functions can be very large, disable it by default to get faster convergence. Signed-off-by: Peter Zijlstra <peterz@infradead.org> Cc: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com> Cc: Mike Galbraith <efault@gmx.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 10d43f5..6c5eb3b 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -2000,7 +2000,7 @@ static unsigned long source_load(int cpu, int type)
struct rq *rq = cpu_rq(cpu);
unsigned long total = weighted_cpuload(cpu);
- if (type == 0)
+ if (type == 0 || !sched_feat(LB_BIAS))
return total;
return min(rq->cpu_load[type-1], total);
@@ -2015,7 +2015,7 @@ static unsigned long target_load(int cpu, int type)
struct rq *rq = cpu_rq(cpu);
unsigned long total = weighted_cpuload(cpu);
- if (type == 0)
+ if (type == 0 || !sched_feat(LB_BIAS))
return total;
return max(rq->cpu_load[type-1], total);
OpenPOWER on IntegriCloud