Received: by 10.213.65.68 with SMTP id h4csp260017imn; Tue, 20 Mar 2018 02:51:07 -0700 (PDT) X-Google-Smtp-Source: AG47ELuTlpyit1QIGz2hjL5APUUMmkzR8/1hH4vZZ1uront6UXWfAiDlZv0hr8XE/b8R6WLEuGVj X-Received: by 10.99.115.68 with SMTP id d4mr11780557pgn.145.1521539467292; Tue, 20 Mar 2018 02:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521539467; cv=none; d=google.com; s=arc-20160816; b=KKNFrF8Bxdvw1pUhZtNTzr2In2mZrqHFLGCGO+umyQ27RSi8/+HAsQONQGZaqAwIzF MPz+f2fcl+OW+Of5U1EVsswJ92kiZUF416PzebHr5WnpolvBl8sHaIXPXtXdAq/gH9a/ jE7LebC+3/+j7TgFWCZn9WsLUdRr4Axx3Mt/+66wLXsM3LWy/3wFN/qiv43lorL89n9x MHzJ2YeFsVGVQdJa166QPVJp0XQ3HdmMhg+q4ZNExI35XS66fypnvGIzUxX4XrjEdY7s YaG+Ts+FtoyRUlEb/fRiqnrRO9EQ4wz7Q1Yz9y1RpJngHhh75lDT8Bm69q+o6nM0c7P6 sqcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=HFkvCxSBwaX1eNN2m/g57H11XvXRcGmPSNkUJLu/Sis=; b=BhQRsJbrDtOZ5WShiZMW+jx0NpSOfZLjh8Q/YnfMxsWa5zdP4xeeFxSrhZsFTcfGNR h4n2KoOj7q91HsKXmBEUTB/YyINek/ox+G48eOKVJIuaSLdWB10kUxH2UHyRsX7EKDTG DpvX/Z0r6LQq7rxhXQaQp8L/G824C4zL/TRRLvDBmnP4JIoBg7n+gHfPhsP0DgClXGVm k/HpWg0IWatQOY351ozjdPs1uFA7ehT8WFbFB5THVnovtPVQdAnl2nAZynCudx3ydYcg TeITeoiEDBgZ7F3AAr5qqayg7e5uzYZhGiYxR1dTEiHY1CsIxzHgp1IQCqbPEKW9xyAg +Uvw== 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 q1si974547pgr.455.2018.03.20.02.50.50; Tue, 20 Mar 2018 02:51:07 -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 S1752655AbeCTJti (ORCPT + 99 others); Tue, 20 Mar 2018 05:49:38 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:54118 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752266AbeCTJte (ORCPT ); Tue, 20 Mar 2018 05:49:34 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E9AA3FA1; Tue, 20 Mar 2018 09:49:33 +0000 (UTC) Date: Tue, 20 Mar 2018 10:49:32 +0100 From: Greg Kroah-Hartman To: Dietmar Eggemann Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Quentin Perret , Thara Gopinath , linux-pm@vger.kernel.org, Morten Rasmussen , Chris Redpath , Patrick Bellasi , Valentin Schneider , "Rafael J . Wysocki" , Vincent Guittot , Viresh Kumar , Todd Kjos , Joel Fernandes Subject: Re: [RFC PATCH 6/6] drivers: base: arch_topology.c: Enable EAS for arm/arm64 platforms Message-ID: <20180320094932.GA23359@kroah.com> References: <20180320094312.24081-1-dietmar.eggemann@arm.com> <20180320094312.24081-7-dietmar.eggemann@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180320094312.24081-7-dietmar.eggemann@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 20, 2018 at 09:43:12AM +0000, Dietmar Eggemann wrote: > From: Quentin Perret > > Energy Aware Scheduling (EAS) has to be started from the arch code. Ok, but: > 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. Why does this have to be in the driver core code just for those specific types of cpus? > > 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(); This is not arch-specific code only for arm. Don't you have a ARM cpu bringup code somewhere? Shouldn't this call be in there? It feels odd that this scheduler change is buried way down here... thanks, greg k-h