Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182494
b: refs/heads/master
c: 9000f05
h: refs/heads/master
v: v3
  • Loading branch information
Suresh Siddha authored and Thomas Gleixner committed Feb 16, 2010
1 parent d0151da commit d64e715
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 28f5318167adf23b16c844b9c2253f355cb21796
refs/heads/master: 9000f05c6d1607f79c0deacf42b09693be673f4c
15 changes: 13 additions & 2 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -4119,12 +4119,23 @@ find_busiest_queue(struct sched_group *group, enum cpu_idle_type idle,
continue;

rq = cpu_rq(i);
wl = weighted_cpuload(i) * SCHED_LOAD_SCALE;
wl /= power;
wl = weighted_cpuload(i);

/*
* When comparing with imbalance, use weighted_cpuload()
* which is not scaled with the cpu power.
*/
if (capacity && rq->nr_running == 1 && wl > imbalance)
continue;

/*
* For the load comparisons with the other cpu's, consider
* the weighted_cpuload() scaled with the cpu power, so that
* the load can be moved away from the cpu that is potentially
* running at a lower capacity.
*/
wl = (wl * SCHED_LOAD_SCALE) / power;

if (wl > max_load) {
max_load = wl;
busiest = rq;
Expand Down

0 comments on commit d64e715

Please sign in to comment.