Received: by 10.213.65.68 with SMTP id h4csp258491imn; Tue, 20 Mar 2018 02:47:59 -0700 (PDT) X-Google-Smtp-Source: AG47ELs8orB8yU7vcGVs7s6p+iseLyvGRVsJXpUJNmXSbCyAwAfqYnRs4idhqgI3aUE0EgB+w59p X-Received: by 10.101.69.76 with SMTP id x12mr4971911pgr.63.1521539279430; Tue, 20 Mar 2018 02:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521539279; cv=none; d=google.com; s=arc-20160816; b=0SLkx90XPinTDiWwEfZOei1LI9ousSv2fniHf4BbNwyp1VZNkcHs8L7bH8S4uKLA+i 827/Xq77+vK4RH1VZf5RbCSefTZcA+2U36Ng621XjwjTmxcoaK8QOPEMQ+pSC0eF82Zt guVfDFmejyz1z/gl+H6IXM4eiZNFvr3RDjz/2raZUOS727ni86IxVzlygecwHxPlCuVS lyTn9AD2YgOuCU2HMJxj1T1cqw2HukWDrrAfEWvmycLHSNvZfBCFNAO00yAK6z60UXom 0GhWdPHLdFQkiQp7LAj9D9tV23BbIfm+KwE9QFnORxmQCTOiJp3xbJXvUs3zk/UFVfvq 3j9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=t4gJWA8/3RTVXDZ1B1zPQjtdqO7lTwQwlooGwxSbXg8=; b=oSkOzSTzjcWkQxXYi8YPX0mYMn67vOSK5Os1wFKd8YG62CgPfsQ4ptlqSz1AJw5jDV 0y2Cx8xCQAtPzsIyHc2X7b1KTAbD51xIzxIzRef0RNyxK6kVwI2jzmXSxHcRLcAQCHUv xDJdAIAibBM4RSDMGNOk2CWh0NwFz9wF/SDwvQgFbVCuAvjcF6GsrPz3OKrHlAH4Fsr4 GahHxw+q6eZbjoOKWvfbH/+qTSXRfF3eqGvU7Ww9l9csgsYpiaKQd/CzsHWDGgiM6Wbc kWc8L9t8d4GCR99U5VYbZDDMv/2cAAQnMeOEVcPL5PpH8SG//Ln5QG+35FkG/RxSWggg 4zlw== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l63-v6si1333155plb.466.2018.03.20.02.47.42; Tue, 20 Mar 2018 02:47:59 -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; 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 S1752597AbeCTJos (ORCPT + 99 others); Tue, 20 Mar 2018 05:44:48 -0400 Received: from foss.arm.com ([217.140.101.70]:37916 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752561AbeCTJoY (ORCPT ); Tue, 20 Mar 2018 05:44:24 -0400 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 8A23B1596; Tue, 20 Mar 2018 02:44:23 -0700 (PDT) Received: from e107985-lin.cambridge.arm.com (e107985-lin.cambridge.arm.com [10.1.210.41]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 079EC3F487; Tue, 20 Mar 2018 02:44:20 -0700 (PDT) From: Dietmar Eggemann To: linux-kernel@vger.kernel.org, Peter Zijlstra , Quentin Perret , Thara Gopinath Cc: linux-pm@vger.kernel.org, Morten Rasmussen , Chris Redpath , Patrick Bellasi , Valentin Schneider , "Rafael J . Wysocki" , Greg Kroah-Hartman , Vincent Guittot , Viresh Kumar , Todd Kjos , Joel Fernandes Subject: [RFC PATCH 6/6] drivers: base: arch_topology.c: Enable EAS for arm/arm64 platforms Date: Tue, 20 Mar 2018 09:43:12 +0000 Message-Id: <20180320094312.24081-7-dietmar.eggemann@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180320094312.24081-1-dietmar.eggemann@arm.com> References: <20180320094312.24081-1-dietmar.eggemann@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Quentin Perret Energy Aware Scheduling (EAS) has to be started from the arch code. This commit enables it from the arch topology driver for arm/arm64 systems, hence enabling a better support for Arm big.LITTLE and future DynamIQ architectures. Cc: Greg Kroah-Hartman Signed-off-by: Quentin Perret --- drivers/base/arch_topology.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index 52ec5174bcb1..e2206ea16538 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -15,6 +15,7 @@ #include #include #include +#include DEFINE_PER_CPU(unsigned long, freq_scale) = SCHED_CAPACITY_SCALE; @@ -204,6 +205,7 @@ init_cpu_capacity_callback(struct notifier_block *nb, free_raw_capacity(); pr_debug("cpu_capacity: parsing done\n"); schedule_work(&parsing_done_work); + init_sched_energy(); } return 0; -- 2.11.0