Messages in this thread Patch in this message | | | Date | Mon, 15 Nov 2010 15:47:07 -0800 | From | Paul Turner <> | Subject | [tg_shares_up rewrite v4 08/11] sched: update shares on idle_balance |
| |
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 <pjt@google.com>
--- kernel/sched_fair.c | 1 + 1 file changed, 1 insertion(+)
Index: tip/kernel/sched_fair.c =================================================================== --- tip.orig/kernel/sched_fair.c +++ tip/kernel/sched_fair.c @@ -3365,6 +3365,7 @@ static void idle_balance(int this_cpu, s */ raw_spin_unlock(&this_rq->lock); + update_shares(this_cpu); for_each_domain(this_cpu, sd) { unsigned long interval; int balance = 1;
| |