aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorHenry Willard <[email protected]>2018-08-15 00:01:02 +0000
committerRafael J. Wysocki <[email protected]>2018-08-16 21:03:29 +0000
commit2a3eb51e30b9ac66fe1b75877627a7e4aaeca24a (patch)
tree82ebe04aa0d83961db2354dd77e6d9c56a589849 /tools/perf/scripts/python/stat-cpi.py
parentMerge tag 'pm-4.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafa... (diff)
downloadkernel-2a3eb51e30b9ac66fe1b75877627a7e4aaeca24a.tar.gz
kernel-2a3eb51e30b9ac66fe1b75877627a7e4aaeca24a.zip
cpufreq: governor: Avoid accessing invalid governor_data
If cppc_cpufreq.ko is deleted at the same time that tuned-adm is changing profiles, there is a small chance that a race can occur between cpufreq_dbs_governor_exit() and cpufreq_dbs_governor_limits() resulting in a system failure when the latter tries to use policy->governor_data that has been freed by the former. This patch uses gov_dbs_data_mutex to synchronize access. Fixes: e788892ba3cc (cpufreq: governor: Get rid of governor events) Signed-off-by: Henry Willard <[email protected]> [ rjw: Subject, minor white space adjustment ] Cc: 4.8+ <[email protected]> # 4.8+ Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions