diff options
author | Viresh Kumar | 2019-02-01 07:15:45 +0100 |
---|---|---|
committer | Rafael J. Wysocki | 2019-02-01 11:52:11 +0100 |
commit | 9795607dc41e7606e90e48bffe6927bee32cd336 (patch) | |
tree | 5189380ea3c0ac3dfd6e39bce1dd92a09205c89c /crypto/lz4hc.c | |
parent | cpufreq: stats: Declare freq-attr right after their callbacks (diff) | |
download | kernel-qcow2-linux-9795607dc41e7606e90e48bffe6927bee32cd336.tar.gz kernel-qcow2-linux-9795607dc41e7606e90e48bffe6927bee32cd336.tar.xz kernel-qcow2-linux-9795607dc41e7606e90e48bffe6927bee32cd336.zip |
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 'crypto/lz4hc.c')
0 files changed, 0 insertions, 0 deletions