From patchwork Tue Aug 26 11:06:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 35992 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 36BA320551 for ; Tue, 26 Aug 2014 11:09:58 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id eu11sf122052852pac.3 for ; Tue, 26 Aug 2014 04:09:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=pkyi+qkJdvjqjXTNLN7zvbc85W/mjs2gOkFq2DQqMIk=; b=TcOkj0ip4GKaVK+okkJTWQHZeu8cSB8I23YxzW7LmJq5OvIPX4SAPZmCLunfPRWLXM 6ThVPUZ2xhy8qtaSxWh1zXSXSPZv89kt3nSwAaS8TyMMoiO9H1BtvBBCzIeLsgvYYRot Hhnk5pgHcH7O2yGoxu98ijD8QS+Nb+bddnzMYpfoZYtG4oo/PHmIL+mb1wXM1Xqeiqq1 dKENfi7xXJKK1GO2sy+1phZlBQD8JChEzh8FxFFxu5sN/CneVekGEgZMHOJ4KSPLjfL9 oiOvV3no/ap7JZXUfW4JVMGo3v4c1kwTtCgo2KMaD7n7r+LuO8VFr7stedBRwqytek36 YmxQ== X-Gm-Message-State: ALoCoQlDfnncYr5PSrygeW0+h5QJegwnKFNMHVEuloSeE4DzNc9hGGkrsu2vdD4TzPQ6KH++Vqq0 X-Received: by 10.66.196.193 with SMTP id io1mr15129544pac.28.1409051397536; Tue, 26 Aug 2014 04:09:57 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.100.242 with SMTP id s105ls2501753qge.42.gmail; Tue, 26 Aug 2014 04:09:57 -0700 (PDT) X-Received: by 10.52.248.42 with SMTP id yj10mr9070086vdc.50.1409051397387; Tue, 26 Aug 2014 04:09:57 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id fc9si1240715vdc.2.2014.08.26.04.09.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 04:09:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id la4so16729528vcb.33 for ; Tue, 26 Aug 2014 04:09:57 -0700 (PDT) X-Received: by 10.220.46.5 with SMTP id h5mr13536vcf.55.1409051397280; Tue, 26 Aug 2014 04:09:57 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp189177vcb; Tue, 26 Aug 2014 04:09:56 -0700 (PDT) X-Received: by 10.67.23.70 with SMTP id hy6mr37009303pad.30.1409051396223; Tue, 26 Aug 2014 04:09:56 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id oe7si3459263pdb.246.2014.08.26.04.09.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Aug 2014 04:09:56 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XMEcL-00035j-T3; Tue, 26 Aug 2014 11:08:49 +0000 Received: from mail-we0-f169.google.com ([74.125.82.169]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XMEbn-0002dU-LA for linux-arm-kernel@lists.infradead.org; Tue, 26 Aug 2014 11:08:16 +0000 Received: by mail-we0-f169.google.com with SMTP id u56so14626424wes.0 for ; Tue, 26 Aug 2014 04:07:53 -0700 (PDT) X-Received: by 10.194.238.195 with SMTP id vm3mr14702535wjc.91.1409051273016; Tue, 26 Aug 2014 04:07:53 -0700 (PDT) Received: from lmenx30s.lme.st.com (LPuteaux-656-01-48-212.w82-127.abo.wanadoo.fr. [82.127.83.212]) by mx.google.com with ESMTPSA id q6sm2494891wjy.47.2014.08.26.04.07.51 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 04:07:52 -0700 (PDT) From: Vincent Guittot To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, preeti@linux.vnet.ibm.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 05/12] ARM: topology: use new cpu_capacity interface Date: Tue, 26 Aug 2014 13:06:48 +0200 Message-Id: <1409051215-16788-6-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409051215-16788-1-git-send-email-vincent.guittot@linaro.org> References: <1409051215-16788-1-git-send-email-vincent.guittot@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140826_040815_859112_0B3CBD14 X-CRM114-Status: GOOD ( 10.21 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.169 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.169 listed in wl.mailspike.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: nicolas.pitre@linaro.org, riel@redhat.com, daniel.lezcano@linaro.org, Vincent Guittot , efault@gmx.de, dietmar.eggemann@arm.com, linaro-kernel@lists.linaro.org, Morten.Rasmussen@arm.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: vincent.guittot@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Use the new arch_scale_cpu_capacity in order to reflect the original capacity of a CPU instead of arch_scale_freq_capacity which is more linked to a scaling of the capacity linked to the frequency. Signed-off-by: Vincent Guittot Acked-by: Nicolas Pitre --- arch/arm/kernel/topology.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c index e35d880..89cfdd6 100644 --- a/arch/arm/kernel/topology.c +++ b/arch/arm/kernel/topology.c @@ -42,7 +42,7 @@ */ static DEFINE_PER_CPU(unsigned long, cpu_scale); -unsigned long arch_scale_freq_capacity(struct sched_domain *sd, int cpu) +unsigned long arch_scale_cpu_capacity(struct sched_domain *sd, int cpu) { return per_cpu(cpu_scale, cpu); } @@ -166,7 +166,7 @@ static void update_cpu_capacity(unsigned int cpu) set_capacity_scale(cpu, cpu_capacity(cpu) / middle_capacity); printk(KERN_INFO "CPU%u: update cpu_capacity %lu\n", - cpu, arch_scale_freq_capacity(NULL, cpu)); + cpu, arch_scale_cpu_capacity(NULL, cpu)); } #else