Messages in this thread | | | Date | Tue, 11 Oct 2022 08:24:26 +0530 | From | Viresh Kumar <> | Subject | Re: [RESEND PATCH V2 7/9] cpufreq: amd_pstate: add AMD Pstate EPP support for the MSR based processors |
| |
On 11-10-22, 00:22, Perry Yuan wrote: > +static void amd_pstate_update_max_freq(unsigned int cpu) > +{ > + struct cpufreq_policy *policy = cpufreq_cpu_acquire(cpu);
Why isn't cpufreq_cpu_get() enough here ? cpufreq_cpu_acquire() is special as it takes policy->rwsem as well and you shouldn't need it.
> + > + if (!policy) > + return; > + > + refresh_frequency_limits(policy); > + cpufreq_cpu_release(policy); > +}
-- viresh
| |