diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-03-26 12:16:58 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-04-01 23:43:05 +0200 |
commit | 540a375822a40675868c5f62ae57b608a579e56a (patch) | |
tree | 3bd9e9ee6d92331bb1d3dca78e087e343a1b3c03 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 5a25e3f7cc538fb49e11267c1e41c54ccf83835e (diff) |
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>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions