Searched hist:"540 a375822a40675868c5f62ae57b608a579e56a" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/cpufreq/ |
H A D | cpufreq.c | diff 540a375822a40675868c5f62ae57b608a579e56a Tue Mar 26 06:16:58 CDT 2019 Rafael J. Wysocki <rafael.j.wysocki@intel.com> cpufreq: Add cpufreq_cpu_acquire() and cpufreq_cpu_release()
It sometimes is necessary to find a cpufreq policy for a given CPU and acquire its rwsem (for writing) immediately after that, so introduce cpufreq_cpu_acquire() as a helper for that and the complementary cpufreq_cpu_release().
Make cpufreq_update_policy() use the new functions.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
|