summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2019-02-01 11:45:45 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-02-01 11:52:11 +0100
commit9795607dc41e7606e90e48bffe6927bee32cd336 (patch)
tree5189380ea3c0ac3dfd6e39bce1dd92a09205c89c /drivers/cpufreq/cpufreq.c
parent10b818211d04805da731087e596fc7c6ce199dea (diff)
downloadlinux-stable-9795607dc41e7606e90e48bffe6927bee32cd336.tar.gz
linux-stable-9795607dc41e7606e90e48bffe6927bee32cd336.tar.bz2
linux-stable-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 'drivers/cpufreq/cpufreq.c')
0 files changed, 0 insertions, 0 deletions