Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100235
b: refs/heads/master
c: 93b7521
h: refs/heads/master
i:
  100233: 3c42b22
  100231: 4c7e183
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Jun 27, 2008
1 parent 7ed1e92 commit 6a9a261
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb5ef42a03a13f95a9ea94e6cda4f7a47497871f
refs/heads/master: 93b75217df39e6d75889cc6f8050343286aff4a5
4 changes: 2 additions & 2 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
1 change: 1 addition & 0 deletions trunk/kernel/sched_features.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ SCHED_FEAT(SYNC_WAKEUPS, 1)
SCHED_FEAT(HRTICK, 1)
SCHED_FEAT(DOUBLE_TICK, 0)
SCHED_FEAT(ASYM_GRAN, 1)
SCHED_FEAT(LB_BIAS, 0)

0 comments on commit 6a9a261

Please sign in to comment.