summaryrefslogtreecommitdiff
path: root/mm/vmacache.c
diff options
context:
space:
mode:
authorSchspa Shi <schspa@gmail.com>2022-05-16 11:02:51 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-05-17 21:39:05 +0200
commit514ff1bcd98d7f57361025e2200b803d3ddde6c8 (patch)
treed561d0cba1de0281c5f5a84148ca8c54622e5a03 /mm/vmacache.c
parentd4627a287e251efed59f2b4bda82c5950768c963 (diff)
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 'mm/vmacache.c')
0 files changed, 0 insertions, 0 deletions