Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366108
b: refs/heads/master
c: cfc0311
h: refs/heads/master
v: v3
  • Loading branch information
Joonsoo Kim authored and Ingo Molnar committed Apr 24, 2013
1 parent 768679c commit e98508f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 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: de5eb2dd7f171ee8a45d23cd41aa2efe9ab922b3
refs/heads/master: cfc03118047172f5bdc58d63c607d16d33ce5305
15 changes: 14 additions & 1 deletion trunk/kernel/sched/fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -5026,8 +5026,21 @@ static int load_balance(int this_cpu, struct rq *this_rq,
.cpus = cpus,
};

/*
* For NEWLY_IDLE load_balancing, we don't need to consider
* other cpus in our group
*/
if (idle == CPU_NEWLY_IDLE) {
env.dst_grpmask = NULL;
/*
* we don't care max_lb_iterations in this case,
* in following patch, this will be removed
*/
max_lb_iterations = 0;
} else
max_lb_iterations = cpumask_weight(env.dst_grpmask);

cpumask_copy(cpus, cpu_active_mask);
max_lb_iterations = cpumask_weight(env.dst_grpmask);

schedstat_inc(sd, lb_count[idle]);

Expand Down

0 comments on commit e98508f

Please sign in to comment.