From patchwork Tue Oct 25 06:02:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 4804 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 9555A23EF6 for ; Tue, 25 Oct 2011 06:02:26 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 7D17BA180B1 for ; Tue, 25 Oct 2011 06:02:26 +0000 (UTC) Received: by faan26 with SMTP id n26so148465faa.11 for ; Mon, 24 Oct 2011 23:02:26 -0700 (PDT) Received: by 10.223.77.71 with SMTP id f7mr48800233fak.33.1319522546324; Mon, 24 Oct 2011 23:02:26 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.1.71 with SMTP id 7cs98510lak; Mon, 24 Oct 2011 23:02:25 -0700 (PDT) Received: by 10.229.66.208 with SMTP id o16mr3782184qci.155.1319522544390; Mon, 24 Oct 2011 23:02:24 -0700 (PDT) Received: from mail-qy0-f171.google.com (mail-qy0-f171.google.com [209.85.216.171]) by mx.google.com with ESMTPS id e17si4913844qcu.21.2011.10.24.23.02.23 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 24 Oct 2011 23:02:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.216.171 is neither permitted nor denied by best guess record for domain of vincent.guittot@linaro.org) client-ip=209.85.216.171; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.216.171 is neither permitted nor denied by best guess record for domain of vincent.guittot@linaro.org) smtp.mail=vincent.guittot@linaro.org Received: by qyk33 with SMTP id 33so3287656qyk.16 for ; Mon, 24 Oct 2011 23:02:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.51.136 with SMTP id d8mr321987qcg.38.1319522543723; Mon, 24 Oct 2011 23:02:23 -0700 (PDT) Received: by 10.229.184.18 with HTTP; Mon, 24 Oct 2011 23:02:23 -0700 (PDT) In-Reply-To: <1319216241-2736-1-git-send-email-vincent.guittot@linaro.org> References: <1319216241-2736-1-git-send-email-vincent.guittot@linaro.org> Date: Tue, 25 Oct 2011 08:02:23 +0200 Message-ID: Subject: Re: [RFC PATCH 10/11] sched: Ensure cpu_power periodic update From: Vincent Guittot To: linaro-dev@lists.linaro.org Cc: patches@linaro.org, Vincent Guittot This fix adds a missing part in the [RFC 07/11]. It will be added in the next version. Signed-off-by: Vincent Guittot --- kernel/sched_fair.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) */ @@ -3887,8 +3889,6 @@ void select_nohz_load_balancer(int stop_tick) static DEFINE_SPINLOCK(balancing); -static unsigned long __read_mostly max_load_balance_interval = HZ/10; - /* * Scale the max load_balance interval with the number of CPUs in the system. * This trades load-balance latency on larger machines for less cross talk. diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 044ffcc..b3a54f4 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c @@ -91,6 +91,8 @@ unsigned int __read_mostly sysctl_sched_shares_window = 10000000UL; static const struct sched_class fair_sched_class; +static unsigned long __read_mostly max_load_balance_interval = HZ/10; + /************************************************************** * CFS operations on generic schedulable entities: