From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932434Ab0KKD4w (ORCPT ); Wed, 10 Nov 2010 22:56:52 -0500 Received: from smtp-out.google.com ([74.125.121.35]:43794 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932104Ab0KKDzH (ORCPT ); Wed, 10 Nov 2010 22:55:07 -0500 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=message-id:references:user-agent:date:from:to:cc:subject:content-disposition; b=E3xh1DwenHnrpMtNkT5hiEgw5YhthcEoZR3HJGbGOglj57ntyEBdRHHBU+1ncIl9E rWGUHZGE5U2uyeXhxQ9dA== Message-Id: <20101111035050.998273353@google.com> References: <20101111035005.443640006@google.com> User-Agent: quilt/0.46-1 Date: Wed, 10 Nov 2010 19:50:13 -0800 From: Paul Turner To: linux-kernel@vger.kernel.org Cc: Peter Zijlstra , Ingo Molnar , Srivatsa Vaddagiri , Chris Friesen , Vaidyanathan Srinivasan , Pierre Bourdon , Paul Turner , Bharata B Rao , Karl Rister , Balbir Singh Subject: [tg_shares_up rewrite v2 08/11] sched: update shares on idle_balance Content-Disposition: inline; filename=sched-tg-update_shares_on_idle_balance.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- kernel/sched_fair.c | 1 + 1 file changed, 1 insertion(+) Index: kernel/sched_fair.c =================================================================== --- kernel/sched_fair.c.orig +++ kernel/sched_fair.c @@ -3301,6 +3301,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; --