]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
sched: Update shares on idle_balance
authorPaul Turner <pjt@google.com>
Mon, 15 Nov 2010 23:47:07 +0000 (15:47 -0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 18 Nov 2010 12:27:49 +0000 (13:27 +0100)
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>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20101115234938.204191702@google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c

index 6c84439ce9872b4983b3d5eb789f9a4b7244cc10..33f941dcf88c2a3cad53515c734761b060a4cad5 100644 (file)
@@ -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;