Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304995
b: refs/heads/master
c: c22402a
h: refs/heads/master
i:
  304993: b7e6b40
  304991: 7b4c2e0
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed May 9, 2012
1 parent 369191d commit 7960bc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: c82513e513556a04f81aa511cd890acd23349c48
refs/heads/master: c22402a2f76e88b04b7a8b6c0597ad9ba6fd71de
10 changes: 5 additions & 5 deletions trunk/kernel/sched/fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -3781,7 +3781,8 @@ static inline void update_sg_lb_stats(struct sched_domain *sd,
{
unsigned long load, max_cpu_load, min_cpu_load, max_nr_running;
int i;
unsigned int balance_cpu = -1, first_idle_cpu = 0;
unsigned int balance_cpu = -1;
unsigned long balance_load = ~0UL;
unsigned long avg_load_per_task = 0;

if (local_group)
Expand All @@ -3797,12 +3798,11 @@ static inline void update_sg_lb_stats(struct sched_domain *sd,

/* Bias balancing toward cpus of our domain */
if (local_group) {
if (idle_cpu(i) && !first_idle_cpu) {
first_idle_cpu = 1;
load = target_load(i, load_idx);
if (load < balance_load || idle_cpu(i)) {
balance_load = load;
balance_cpu = i;
}

load = target_load(i, load_idx);
} else {
load = source_load(i, load_idx);
if (load > max_cpu_load) {
Expand Down

0 comments on commit 7960bc9

Please sign in to comment.