From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: sched-freq locking Date: Thu, 21 Jan 2016 02:46:05 +0100 Message-ID: <5334719.Agh48cz3NL@vostro.rjw.lan> References: <56984C30.8040402@linaro.org> <2058083.HonoCMD469@vostro.rjw.lan> <56A036C2.4090403@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7Bit Return-path: Received: from v094114.home.net.pl ([79.96.170.134]:43785 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751260AbcAUBpW (ORCPT ); Wed, 20 Jan 2016 20:45:22 -0500 In-Reply-To: <56A036C2.4090403@linaro.org> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Steve Muckle Cc: Michael Turquette , Vincent Guittot , Juri Lelli , Patrick Bellasi , Morten Rasmussen , Dietmar Eggemann , Viresh Kumar , "linux-kernel@vger.kernel.org" , "linux-pm@vger.kernel.org" , Peter Zijlstra On Wednesday, January 20, 2016 05:39:14 PM Steve Muckle wrote: > On 01/20/2016 05:22 PM, Rafael J. Wysocki wrote: > > One comment here (which may be a bit off in which case please ignore it). > > > > You seem to be thinking that sched-freq needs to be a cpufreq governor > > and thus be handled in the same way as ondemand, for example. > > That's true, I hadn't really given much thought to the alternative you > mention below. > > > > > However, this doesn't have to be the case in principle. For example, > > if we have a special driver callback specifically to work with sched-freq, > > it may just use that callback and bypass (almost) all of the usual > > cpufreq mechanics. This way you may avoid worrying about the governor > > locking and related ugliness entirely. > > That sounds good but I'm worried about other consequences of taking > cpufreq out of the loop. For example wouldn't we need a new way for > something like thermal to set frequency limits? I don't know from the top of my head, but that's at least worth investigating. Maybe we can keep the interface for those things unchanged, but handle it differently under the hood? Thanks, Rafael