Re: [PATCH v2 2/3] cpufreq: acpi-cpufreq: add resolve_freq callback

2016-05-31 Thread Viresh Kumar
On 30-05-16, 09:20, Steve Muckle wrote: > A couple concerns... One is that if we do the lookup in > cpufreq_driver_resolve_freq() for drivers which implement target_index() > then it means using cpufreq_frequency_table_target() there. This is a > heavier weight function that can't take advantage o

Re: [PATCH v2 2/3] cpufreq: acpi-cpufreq: add resolve_freq callback

2016-05-30 Thread Steve Muckle
On Thu, May 26, 2016 at 12:13:41PM +0530, Viresh Kumar wrote: > On 25-05-16, 19:53, Steve Muckle wrote: > > Support the new resolve_freq cpufreq callback which resolves a target > > frequency to a driver-supported frequency without actually setting it. > > And here is the first abuser of this API

Re: [PATCH v2 2/3] cpufreq: acpi-cpufreq: add resolve_freq callback

2016-05-25 Thread Viresh Kumar
On 25-05-16, 19:53, Steve Muckle wrote: > Support the new resolve_freq cpufreq callback which resolves a target > frequency to a driver-supported frequency without actually setting it. And here is the first abuser of this API as I was talking about in the earlier patch :) But, I know why you are

[PATCH v2 2/3] cpufreq: acpi-cpufreq: add resolve_freq callback

2016-05-25 Thread Steve Muckle
Support the new resolve_freq cpufreq callback which resolves a target frequency to a driver-supported frequency without actually setting it. The target frequency and resolved frequency table entry are cached so that a subsequent fast_switch operation may avoid the frequency table walk assuming the