From patchwork Fri Jan 8 14:09:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juri Lelli X-Patchwork-Id: 59363 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp579633lbb; Fri, 8 Jan 2016 06:10:42 -0800 (PST) X-Received: by 10.98.89.139 with SMTP id k11mr4655224pfj.82.1452262241790; Fri, 08 Jan 2016 06:10:41 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7si5238580pfq.145.2016.01.08.06.10.41; Fri, 08 Jan 2016 06:10:41 -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 S1755361AbcAHOKh (ORCPT + 29 others); Fri, 8 Jan 2016 09:10:37 -0500 Received: from foss.arm.com ([217.140.101.70]:45526 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755507AbcAHOJw (ORCPT ); Fri, 8 Jan 2016 09:09:52 -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 870D1483; Fri, 8 Jan 2016 06:09:17 -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 7EE0E3F459; Fri, 8 Jan 2016 06:09:48 -0800 (PST) From: Juri Lelli To: linux-kernel@vger.kernel.org Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.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: [RFC PATCH v2 3/4] arm: Enable dynamic CPU capacity initialization Date: Fri, 8 Jan 2016 14:09:31 +0000 Message-Id: <1452262172-31861-4-git-send-email-juri.lelli@arm.com> X-Mailer: git-send-email 2.2.2 In-Reply-To: <1452262172-31861-1-git-send-email-juri.lelli@arm.com> References: <1452262172-31861-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.2.2 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;