diff options
author | 2016-02-11 17:31:13 +0530 | |
---|---|---|
committer | 2016-03-09 14:41:01 +0100 | |
commit | 99522fe6788f5bf627dce7c20ed9484c933511a3 (patch) | |
tree | 55353e0c03780e911cf855135f32f02565fd9603 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | cpufreq: Call __cpufreq_governor() with policy->rwsem held (diff) | |
download | linux-dev-99522fe6788f5bf627dce7c20ed9484c933511a3.tar.xz linux-dev-99522fe6788f5bf627dce7c20ed9484c933511a3.zip |
cpufreq: Remove cpufreq_governor_lock
We used to drop policy->rwsem just before calling __cpufreq_governor()
in some cases earlier and so it was possible that __cpufreq_governor()
ran concurrently via separate threads for the same policy.
In order to guarantee valid state transitions for governors,
'governor_enabled' was required to be protected using some locking
and cpufreq_governor_lock was added for that.
But now __cpufreq_governor() is always called under policy->rwsem,
and 'governor_enabled' is protected against races even without
cpufreq_governor_lock.
Get rid of the extra lock now.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Juri Lelli <juri.lelli@arm.com>
Tested-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
[ rjw : Changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions