diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2008-06-27 07:41:22 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-27 08:31:35 -0400 |
commit | a25b5aca8740ea99d5e18dfc71235a52b685dcf7 (patch) | |
tree | 834bcfd9a51f840cc10693348ecffc99ce69550d /kernel/sched_fair.c | |
parent | d3f40dbab954d83383b6a516582d5c09cc216dcc (diff) |
sched: no need to aggregate task_weight
We only need to know the task_weight of the busiest rq - nothing to do
if there are no tasks there.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
Cc: Mike Galbraith <efault@gmx.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index b10c0d61a2a9..03b9fbd9d648 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -1427,7 +1427,7 @@ load_balance_fair(struct rq *this_rq, int this_cpu, struct rq *busiest, | |||
1427 | /* | 1427 | /* |
1428 | * empty group | 1428 | * empty group |
1429 | */ | 1429 | */ |
1430 | if (!aggregate(tg, this_cpu)->task_weight) | 1430 | if (!tg->cfs_rq[busiest_cpu]->task_weight) |
1431 | continue; | 1431 | continue; |
1432 | 1432 | ||
1433 | rem_load = rem_load_move * aggregate(tg, this_cpu)->rq_weight; | 1433 | rem_load = rem_load_move * aggregate(tg, this_cpu)->rq_weight; |