summaryrefslogtreecommitdiff
path: root/include/linux/acpi.h
diff options
context:
space:
mode:
authorSchspa Shi <schspa@gmail.com>2022-05-16 06:02:51 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-05-17 22:39:05 +0300
commit514ff1bcd98d7f57361025e2200b803d3ddde6c8 (patch)
treed561d0cba1de0281c5f5a84148ca8c54622e5a03 /include/linux/acpi.h
parentd4627a287e251efed59f2b4bda82c5950768c963 (diff)
downloadlinux-514ff1bcd98d7f57361025e2200b803d3ddde6c8.tar.xz
cpufreq: make interface functions and lock holding state clear
cpufreq_offline() calls offline() and exit() under the policy rwsem But they are called outside the rwsem in cpufreq_online(). Make cpufreq_online() call offline() and exit() as well as online() and init() under the policy rwsem to achieve a clear lock relationship. All of the init() and online() implementations in the tree only initialize the policy object without attempting to acquire the policy rwsem and they won't call cpufreq APIs attempting to acquire it. Signed-off-by: Schspa Shi <schspa@gmail.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> [ rjw: Changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/acpi.h')
0 files changed, 0 insertions, 0 deletions