From patchwork Fri Jan 8 14:09:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juri Lelli X-Patchwork-Id: 59362 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp579342lbb; Fri, 8 Jan 2016 06:10:14 -0800 (PST) X-Received: by 10.66.235.162 with SMTP id un2mr7666193pac.17.1452262205610; Fri, 08 Jan 2016 06:10:05 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vt4si63402718pab.8.2016.01.08.06.10.05; Fri, 08 Jan 2016 06:10: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 S1755539AbcAHOJ5 (ORCPT + 29 others); Fri, 8 Jan 2016 09:09:57 -0500 Received: from foss.arm.com ([217.140.101.70]:45538 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755505AbcAHOJy (ORCPT ); Fri, 8 Jan 2016 09:09:54 -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 5F07F4E7; Fri, 8 Jan 2016 06:09:20 -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 52D6E3F459; Fri, 8 Jan 2016 06:09:51 -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 4/4] arm64: Enable dynamic CPU capacity initialization Date: Fri, 8 Jan 2016 14:09:32 +0000 Message-Id: <1452262172-31861-5-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: Catalin Marinas Cc: Will Deacon Cc: Sudeep Holla Cc: Mark Rutland Signed-off-by: Juri Lelli --- arch/arm64/kernel/topology.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.2.2 diff --git a/arch/arm64/kernel/topology.c b/arch/arm64/kernel/topology.c index 3b75d63..f2513a6 100644 --- a/arch/arm64/kernel/topology.c +++ b/arch/arm64/kernel/topology.c @@ -35,6 +35,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; +} + static int __init get_cpu_for_node(struct device_node *node) { struct device_node *cpu_node;