Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100222
b: refs/heads/master
c: 53fecd8
h: refs/heads/master
v: v3
  • Loading branch information
Srivatsa Vaddagiri authored and Ingo Molnar committed Jun 27, 2008
1 parent 206b5b0 commit 521fb17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 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: 4d8d595dfa69e1c807bf928f364668a7f30da5dc
refs/heads/master: 53fecd8ae1900fb571086f54f664051004665b55
15 changes: 2 additions & 13 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -1422,9 +1422,7 @@ load_balance_fair(struct rq *this_rq, int this_cpu, struct rq *busiest,

rcu_read_lock();
list_for_each_entry(tg, &task_groups, list) {
long imbalance;
unsigned long this_weight, busiest_weight;
long rem_load, max_load, moved_load;
long rem_load, moved_load;

/*
* empty group
Expand All @@ -1435,17 +1433,8 @@ load_balance_fair(struct rq *this_rq, int this_cpu, struct rq *busiest,
rem_load = rem_load_move * aggregate(tg, this_cpu)->rq_weight;
rem_load /= aggregate(tg, this_cpu)->load + 1;

this_weight = tg->cfs_rq[this_cpu]->task_weight;
busiest_weight = tg->cfs_rq[busiest_cpu]->task_weight;

imbalance = (busiest_weight - this_weight) / 2;

if (imbalance < 0)
imbalance = busiest_weight;

max_load = max(rem_load, imbalance);
moved_load = __load_balance_fair(this_rq, this_cpu, busiest,
max_load, sd, idle, all_pinned, this_best_prio,
rem_load, sd, idle, all_pinned, this_best_prio,
tg->cfs_rq[busiest_cpu]);

if (!moved_load)
Expand Down

0 comments on commit 521fb17

Please sign in to comment.