From patchwork Fri Mar 28 13:22:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 27282 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f70.google.com (mail-pa0-f70.google.com [209.85.220.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D051420062 for ; Fri, 28 Mar 2014 13:24:50 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id lj1sf12121488pab.1 for ; Fri, 28 Mar 2014 06:24:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=PuHkVLkw9IGjCPrzyZNC52BdqV1gMTKKHHvvFrmuBV4=; b=Jsh8wuIwnWckHXEhihmTFqH38qsZO6dNxDpCFlF+KO+3Ms8j1u9xz0DSWeRv5ULhSh UhWL0lQuJPXS7PqOanP+aM1j4YtfsktCvbda3wkDd0pM2DPuA/imbYWhFBs8kR0W4Wl6 jdZKnNa4tjK/HU49dyIbmbRpTrEig9Z+km4FbNpoUuXxkzTE+CHkuraT1Vmf/VOojRGf rIespbanqjjNcVoyN9FQW5rhZIFLjmunMEgwu9EOSnOm1FPsNl4y3KDGHHDUQ99kvIO4 f1ruRDdE6DKXZR9lELIwn+5DovKRAkCHBCNlEBx+QUMStMzKi9ULDuVcoPqsBBDwS7yA vG3w== X-Gm-Message-State: ALoCoQlgAklyNv/wGYVoWtSy6xMMKN80hW4cCRV0zcvu46/M0LGomFlaLAqo0F3mSC+/A6Sef4n3 X-Received: by 10.66.27.132 with SMTP id t4mr3166865pag.6.1396013089955; Fri, 28 Mar 2014 06:24:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.92.163 with SMTP id b32ls1218669qge.22.gmail; Fri, 28 Mar 2014 06:24:49 -0700 (PDT) X-Received: by 10.58.154.10 with SMTP id vk10mr7284670veb.18.1396013089812; Fri, 28 Mar 2014 06:24:49 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id dr8si1248147vcb.13.2014.03.28.06.24.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Mar 2014 06:24:49 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id oy12so5828745veb.12 for ; Fri, 28 Mar 2014 06:24:49 -0700 (PDT) X-Received: by 10.220.250.203 with SMTP id mp11mr7167506vcb.2.1396013089722; Fri, 28 Mar 2014 06:24:49 -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.220.12.8 with SMTP id v8csp8392vcv; Fri, 28 Mar 2014 06:24:49 -0700 (PDT) X-Received: by 10.67.5.7 with SMTP id ci7mr8457952pad.99.1396013088935; Fri, 28 Mar 2014 06:24:48 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zm8si490607pac.150.2014.03.28.06.24.48; Fri, 28 Mar 2014 06:24:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752181AbaC1NYb (ORCPT + 27 others); Fri, 28 Mar 2014 09:24:31 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:42109 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752055AbaC1NYY (ORCPT ); Fri, 28 Mar 2014 09:24:24 -0400 Received: by mail-wi0-f180.google.com with SMTP id q5so747159wiv.13 for ; Fri, 28 Mar 2014 06:24:23 -0700 (PDT) X-Received: by 10.180.108.199 with SMTP id hm7mr47562757wib.1.1396013063445; Fri, 28 Mar 2014 06:24:23 -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 q2sm7237157wix.5.2014.03.28.06.24.21 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Mar 2014 06:24:22 -0700 (PDT) From: Vincent Guittot To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Cc: preeti@linux.vnet.ibm.com, Morten.Rasmussen@arm.com, efault@gmx.de, linaro-kernel@lists.linaro.org, Vincent Guittot Subject: [RFC 2/4] ARM: topology: use new cpu_power interface Date: Fri, 28 Mar 2014 14:22:27 +0100 Message-Id: <1396012949-6227-3-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1396012949-6227-1-git-send-email-vincent.guittot@linaro.org> References: <1396012949-6227-1-git-send-email-vincent.guittot@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: vincent.guittot@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Use the new arch_scale_cpu_power in order to reflect the original capacity of a CPU instead of arch_scale_freq_power which is more linked to a scaling of the capacity regarding frequency. Signed-off-by: Vincent Guittot --- 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 0bc94b1..55a7d90 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_power(struct sched_domain *sd, int cpu) +unsigned long arch_scale_cpu_power(struct sched_domain *sd, int cpu) { return per_cpu(cpu_scale, cpu); } @@ -166,7 +166,7 @@ static void update_cpu_power(unsigned int cpu) set_power_scale(cpu, cpu_capacity(cpu) / middle_capacity); printk(KERN_INFO "CPU%u: update cpu_power %lu\n", - cpu, arch_scale_freq_power(NULL, cpu)); + cpu, arch_scale_cpu_power(NULL, cpu)); } #else