diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2019-02-01 11:45:45 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-02-01 11:52:11 +0100 |
commit | 9795607dc41e7606e90e48bffe6927bee32cd336 (patch) | |
tree | 5189380ea3c0ac3dfd6e39bce1dd92a09205c89c /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 10b818211d04805da731087e596fc7c6ce199dea (diff) |
cpufreq: stats: Fix concurrency issues while resetting stats
It is possible for cpufreq_stats_clear_table() and
cpufreq_stats_record_transition() to get called concurrently and they
will try to update same variables simultaneously and may lead to
corruption of data.
Prevent that with the help of existing spinlock.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions