Re: [PATCH 5/6] cpufreq: Support for fast frequency switching

2016-03-03 Thread Rafael J. Wysocki
On Thu, Mar 3, 2016 at 7:00 AM, Viresh Kumar wrote: > On 02-03-16, 03:12, Rafael J. Wysocki wrote: >> Index: linux-pm/drivers/cpufreq/cpufreq.c >> === >> --- linux-pm.orig/drivers/cpufreq/cpufreq.c >> +++ linux-pm/drivers/cpufreq/cpuf

Re: [PATCH 5/6] cpufreq: Support for fast frequency switching

2016-03-03 Thread Peter Zijlstra
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 take

Re: [PATCH 5/6] cpufreq: Support for fast frequency switching

2016-03-03 Thread Rafael J. Wysocki
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 c

Re: [PATCH 5/6] cpufreq: Support for fast frequency switching

2016-03-03 Thread Rafael J. Wysocki
On Thu, Mar 3, 2016 at 12:18 PM, Peter Zijlstra wrote: > On Wed, Mar 02, 2016 at 03:12:33AM +0100, Rafael J. Wysocki wrote: >> +void cpufreq_driver_fast_switch(struct cpufreq_policy *policy, >> + unsigned int target_freq, unsigned int >> relation) >> +{ >> + unsign

Re: [PATCH 5/6] cpufreq: Support for fast frequency switching

2016-03-03 Thread Peter Zijlstra
On Wed, Mar 02, 2016 at 03:12:33AM +0100, Rafael J. Wysocki wrote: > +void cpufreq_driver_fast_switch(struct cpufreq_policy *policy, > + unsigned int target_freq, unsigned int relation) > +{ > + unsigned int freq; > + > + if (target_freq == policy->cur) > +

Re: [PATCH 5/6] cpufreq: Support for fast frequency switching

2016-03-03 Thread Peter Zijlstra
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_

Re: [PATCH 5/6] cpufreq: Support for fast frequency switching

2016-03-02 Thread Viresh Kumar
On 02-03-16, 03:12, Rafael J. Wysocki wrote: > Index: linux-pm/drivers/cpufreq/cpufreq.c > === > --- linux-pm.orig/drivers/cpufreq/cpufreq.c > +++ linux-pm/drivers/cpufreq/cpufreq.c > @@ -1772,6 +1772,39 @@ EXPORT_SYMBOL(cpufreq_unregi

[PATCH 5/6] cpufreq: Support for fast frequency switching

2016-03-01 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Modify the ACPI cpufreq driver to provide a method for switching CPU frequencies from interrupt context and update the cpufreq core to support that method if available. Introduce a new cpufreq driver callback, ->fast_switch, to be invoked for frequency switching from inte