Re: [PATCH v2 10/14] cpufreq: dt: Allow platform specific intermediate callbacks
From: Viresh Kumar
Date: Wed Feb 19 2020 - 04:45:13 EST
On 19-02-20, 09:41, Peng Fan wrote:
> In drivers/cpufreq/cpufreq.c, function __target_index. Line 2065, see below:
>
> 2062 notify = !(cpufreq_driver->flags & CPUFREQ_ASYNC_NOTIFICATION);
> 2063 if (notify) {
> 2064 /* Handle switching to intermediate frequency */
> 2065 if (cpufreq_driver->get_intermediate) {
> 2066 retval = __target_intermediate(policy, &freqs, index);
> 2067 if (retval)
> 2068 return retval;
> 2069
> 2070 intermediate_freq = freqs.new;
> 2071 /* Set old freq to intermediate */
> 2072 if (intermediate_freq)
> 2073 freqs.old = freqs.new;
> 2074 }
>
> Inspired from tegra20-cpufreq.c, use target_intermediate could handle
> i.MX7ULP cpufreq easier.
Ahh, sorry about that. Completely forgot this stuff existed :)
--
viresh