Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753039AbdGJGyt (ORCPT ); Mon, 10 Jul 2017 02:54:49 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:36083 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752295AbdGJGyr (ORCPT ); Mon, 10 Jul 2017 02:54:47 -0400 Date: Mon, 10 Jul 2017 12:24:43 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Dietmar Eggemann , Peter Zijlstra , "Rafael J. Wysocki" , Linux Kernel Mailing List , Linux PM , Russell King - ARM Linux , Greg Kroah-Hartman , Russell King , Catalin Marinas , Will Deacon , Juri Lelli , Vincent Guittot , Morten Rasmussen Subject: Re: [PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support Message-ID: <20170710065443.GG2928@vireshk-i7> References: <20170706094948.8779-1-dietmar.eggemann@arm.com> <22f004af-0158-8265-2da5-34743f294bfb@arm.com> <12829054.TWIodSo4bb@aspire.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12829054.TWIodSo4bb@aspire.rjw.lan> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 894 Lines: 19 On 08-07-17, 14:09, Rafael J. Wysocki wrote: > I'm sort of wondering how many is "a lot" really. For instance, do you really > want all of the existing ARM platforms to use the new stuff even though > it may regress things there in principle? That's a valid question and we must (maybe we already have) have a policy for such changes. I thought that such changes (which are so closely bound to the scheduler) must be at least done at the architecture level and not really at platform level. And so doing it widely (like done in this patch) maybe the right thing to do. > Anyway, if everyone agrees that doing it in the core is the way to go (Peter?), > why don't you introduce a __weak function for setting policy->cur and > override it from your arch so as to call arch_set_freq_scale() from there? I agree. I wanted to suggest that earlier but somehow forgot to mention this. -- viresh