Skip to content

Commit

Permalink
sched: Update shares on idle_balance
Browse files Browse the repository at this point in the history
Since shares updates are no longer expensive and effectively local, update them
at idle_balance().  This allows us to more quickly redistribute shares to
another cpu when our load becomes idle.

Signed-off-by: Paul Turner <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
paulturner authored and Ingo Molnar committed Nov 18, 2010
1 parent a7a4f8a commit c66eaf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -3343,6 +3343,7 @@ static void idle_balance(int this_cpu, struct rq *this_rq)
*/
raw_spin_unlock(&this_rq->lock);

update_shares(this_cpu);
for_each_domain(this_cpu, sd) {
unsigned long interval;
int balance = 1;
Expand Down

0 comments on commit c66eaf6

Please sign in to comment.