commit | 9795607dc41e7606e90e48bffe6927bee32cd336 | [log] [tgz] |
---|---|---|
author | Viresh Kumar <viresh.kumar@linaro.org> | Fri Feb 01 11:45:45 2019 +0530 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Fri Feb 01 11:52:11 2019 +0100 |
tree | 5189380ea3c0ac3dfd6e39bce1dd92a09205c89c | |
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>