From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH 5/6] cpufreq: Support for fast frequency switching Date: Thu, 3 Mar 2016 22:12:16 +0100 Message-ID: <20160303211216.GV6356@twins.programming.kicks-ass.net> References: <2495375.dFbdlAZmA6@vostro.rjw.lan> <26020775.9hJG2SHiH2@vostro.rjw.lan> <20160303111655.GL6356@twins.programming.kicks-ass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-pm-owner@vger.kernel.org To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Linux PM list , Juri Lelli , Steve Muckle , ACPI Devel Maling List , Linux Kernel Mailing List , Srinivas Pandruvada , Viresh Kumar , Vincent Guittot , Michael Turquette List-Id: linux-acpi@vger.kernel.org On Thu, Mar 03, 2016 at 09:56:40PM +0100, Rafael J. Wysocki wrote: > On Thu, Mar 3, 2016 at 12:16 PM, Peter Zijlstra wrote: > > On Wed, Mar 02, 2016 at 03:12:33AM +0100, Rafael J. Wysocki wrote: > >> The most important change from the previous version is that the > >> ->fast_switch() callback takes an additional "relation" argument > >> and now the governor can use it to choose a selection method. > > > >> +unsigned int acpi_cpufreq_fast_switch(struct cpufreq_policy *policy, > >> + unsigned int target_freq, > >> + unsigned int relation) > > > > Would it make sense to replace the {target_freq, relation} pair with > > something like the CPPC {min_freq, max_freq} pair? > > Yes, it would in general, but since I use __cpufreq_driver_target() in > the "slow driver" case, that would need to be reworked too for > consistency. So I'd prefer to do that later. OK, fair enough.