From patchwork Wed Feb 3 11:59:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juri Lelli X-Patchwork-Id: 61069 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp245836lbl; Wed, 3 Feb 2016 04:01:05 -0800 (PST) X-Received: by 10.98.65.148 with SMTP id g20mr1497804pfd.21.1454500865576; Wed, 03 Feb 2016 04:01:05 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id lh7si2128222pab.112.2016.02.03.04.01.05; Wed, 03 Feb 2016 04:01:05 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756572AbcBCMBD (ORCPT + 30 others); Wed, 3 Feb 2016 07:01:03 -0500 Received: from foss.arm.com ([217.140.101.70]:33716 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755481AbcBCL7p (ORCPT ); Wed, 3 Feb 2016 06:59:45 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A1A4B592; Wed, 3 Feb 2016 03:59:00 -0800 (PST) Received: from e106622-lin.cambridge.arm.com (e106622-lin.cambridge.arm.com [10.1.208.152]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 335463F2E5; Wed, 3 Feb 2016 03:59:42 -0800 (PST) From: Juri Lelli To: linux-kernel@vger.kernel.org Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, peterz@infradead.org, vincent.guittot@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, linux@arm.linux.org.uk, sudeep.holla@arm.com, lorenzo.pieralisi@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, morten.rasmussen@arm.com, dietmar.eggemann@arm.com, juri.lelli@arm.com, broonie@kernel.org Subject: [PATCH v3 3/6] arm: Enable dynamic CPU capacity initialization Date: Wed, 3 Feb 2016 11:59:56 +0000 Message-Id: <1454500799-18451-4-git-send-email-juri.lelli@arm.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1454500799-18451-1-git-send-email-juri.lelli@arm.com> References: <1454500799-18451-1-git-send-email-juri.lelli@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Define arch_wants_init_cpu_capacity() to return true; so that cpufreq_init_cpu_capacity() can go ahead and profile CPU capacities at boot time. Cc: Russell King Cc: Vincent Guittot Signed-off-by: Juri Lelli --- arch/arm/kernel/topology.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.7.0 diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c index c9c87a5..7d7fc2c 100644 --- a/arch/arm/kernel/topology.c +++ b/arch/arm/kernel/topology.c @@ -52,6 +52,11 @@ void set_capacity_scale(unsigned int cpu, unsigned long capacity) per_cpu(cpu_scale, cpu) = capacity; } +bool arch_wants_init_cpu_capacity(void) +{ + return true; +} + #ifdef CONFIG_OF struct cpu_efficiency { const char *compatible;