From patchwork Mon Jun 30 16:05:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 32781 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C014B203C0 for ; Mon, 30 Jun 2014 16:09:56 +0000 (UTC) Received: by mail-pa0-f71.google.com with SMTP id eu11sf45042723pac.2 for ; Mon, 30 Jun 2014 09:09:56 -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=9EXiynkyho8vK0SeDyQegWZv0C/FU9V8pOz4qDP9DuI=; b=ARESvJbKmqsVD/R9xBl6mWusM4fgy0mWJ4sPwwDAVhEE+qxJFXkLjLDO3WrI5elCl3 Q0UZxTiJP8V0uenoNzkJpPe8iliW22ZC9uRPJw7WazPuvXaEnHs7u2s2LvHzpsCQj2SA kWQl9U7XIJj9my44rxIiZTVFHyqHepizj9c7+Y2oJP2MO2hQwLby24KXMdBRaUdTqw8w dEq6Ikv4Iiw9mYojhTbAq/3tS0PafyGwmoDHH3py8NOUzbWfbx1cappr3tw77RRfXw4W iAunwcMETVA//qBUnYuDauEcxvK7R99nGn1Kblk3daOdMyOTkSnYAy3usgXk2SzeaPQz IuVg== X-Gm-Message-State: ALoCoQnUYL8yasWoZmmd6QYstLFVXjOqJXcwjXre317KerOw+APXvrvzZbVQhekmqKBWHrv2yMNh X-Received: by 10.66.66.163 with SMTP id g3mr23102839pat.3.1404144595970; Mon, 30 Jun 2014 09:09:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.88.101 with SMTP id s92ls1559631qgd.77.gmail; Mon, 30 Jun 2014 09:09:55 -0700 (PDT) X-Received: by 10.58.155.38 with SMTP id vt6mr39611808veb.3.1404144595831; Mon, 30 Jun 2014 09:09:55 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id te2si10225330vcb.101.2014.06.30.09.09.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 09:09:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id hy10so7707453vcb.17 for ; Mon, 30 Jun 2014 09:09:55 -0700 (PDT) X-Received: by 10.58.220.230 with SMTP id pz6mr38963633vec.9.1404144595752; Mon, 30 Jun 2014 09:09:55 -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.37.5 with SMTP id tc5csp151415vcb; Mon, 30 Jun 2014 09:09:55 -0700 (PDT) X-Received: by 10.68.203.132 with SMTP id kq4mr53698624pbc.12.1404144594962; Mon, 30 Jun 2014 09:09:54 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cb9si23694553pad.6.2014.06.30.09.09.54; Mon, 30 Jun 2014 09:09:54 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756671AbaF3QJq (ORCPT + 27 others); Mon, 30 Jun 2014 12:09:46 -0400 Received: from mail-we0-f172.google.com ([74.125.82.172]:59580 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756083AbaF3QGy (ORCPT ); Mon, 30 Jun 2014 12:06:54 -0400 Received: by mail-we0-f172.google.com with SMTP id u57so8341961wes.3 for ; Mon, 30 Jun 2014 09:06:53 -0700 (PDT) X-Received: by 10.180.79.201 with SMTP id l9mr30819941wix.60.1404144413102; Mon, 30 Jun 2014 09:06: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 lo18sm32896271wic.1.2014.06.30.09.06.51 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 09:06:52 -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, nicolas.pitre@linaro.org, linaro-kernel@lists.linaro.org, daniel.lezcano@linaro.org, dietmar.eggemann@arm.com, Vincent Guittot Subject: [PATCH v3 05/12] ARM: topology: use new cpu_power interface Date: Mon, 30 Jun 2014 18:05:36 +0200 Message-Id: <1404144343-18720-6-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1404144343-18720-1-git-send-email-vincent.guittot@linaro.org> References: <1404144343-18720-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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 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 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 linked to the frequency. Signed-off-by: Vincent Guittot Acked-by: Rik van Riel --- 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 d42a7db..2310bfb 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