From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933906Ab0KOXwz (ORCPT ); Mon, 15 Nov 2010 18:52:55 -0500 Received: from smtp-out.google.com ([74.125.121.35]:36061 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932840Ab0KOXws (ORCPT ); Mon, 15 Nov 2010 18:52:48 -0500 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=message-id:user-agent:date:from:to:cc:subject:references:content-disposition; b=vAMAOA4N1lXy0MAtNHa0oxjWcVbKDOgMeacrDcZfyely3Vrc6xB+6zTfWzUs5Ssx4 xIPVSV25MfmcmqH5vhU/w== Message-Id: <20101115234938.204191702@google.com> User-Agent: quilt/0.48-1 Date: Mon, 15 Nov 2010 15:47:07 -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 , David Miller Subject: [tg_shares_up rewrite v4 08/11] sched: update shares on idle_balance References: <20101115234659.610333554@google.com> 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: 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;