From: Nikhil Rao Date: Wed, 17 Nov 2010 19:42:04 +0000 (-0800) Subject: sched: Fix idle balancing X-Git-Tag: upstream/snapshot3+hdmi~12289^4~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5ad140bc1505a98c0f040937125bfcbb508078f;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git sched: Fix idle balancing An earlier commit reverts idle balancing throttling reset to fix a 30% regression in volanomark throughput. We still need to reset idle_stamp when we pull a task in newidle balance. Reported-by: Alex Shi Signed-off-by: Nikhil Rao Signed-off-by: Peter Zijlstra LKML-Reference: <1290022924-3548-1-git-send-email-ncrao@google.com> Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index ba0556d..00ebd76 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c @@ -3215,8 +3215,10 @@ static void idle_balance(int this_cpu, struct rq *this_rq) interval = msecs_to_jiffies(sd->balance_interval); if (time_after(next_balance, sd->last_balance + interval)) next_balance = sd->last_balance + interval; - if (pulled_task) + if (pulled_task) { + this_rq->idle_stamp = 0; break; + } } raw_spin_lock(&this_rq->lock);