cpufreq: protect cpufreq_stats_free_table with spinlock
authorPeter Boonstoppel <pboonstoppel@nvidia.com>
Fri, 2 Mar 2012 00:04:27 +0000 (16:04 -0800)
committerSimone Willett <swillett@nvidia.com>
Tue, 17 Jul 2012 03:13:37 +0000 (20:13 -0700)
commit8c813763e8fe5928cbd7babbee4d5080ba4bb9d5
treea0071c76302ed14774bd313888ee4105f8348621
parente6e9afa497611669b26b805302ec5642a18a57a6
cpufreq: protect cpufreq_stats_free_table with spinlock

Prevents crash on cpufreq_stat_notifier_trans when cpufreq_stats_table
has been freed due to a core being hotplugged out.

Bug 948348

Change-Id: I2640a9a23c9a79cad8c76bfefd243a07162d2004
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
(cherry picked from commit 03070a4b0b8eb74825c99c6bbfb108ddb36a041c)
Reviewed-on: http://git-master/r/114248
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
drivers/cpufreq/cpufreq_stats.c