cpufreq: Acquire the lock in cpufreq_policy_restore() for reading
authorLan Tianyu <tianyu.lan@intel.com>
Wed, 11 Sep 2013 07:05:05 +0000 (15:05 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 Sep 2013 21:30:03 +0000 (23:30 +0200)
commit44871c9c7f7963f8869dd8bc9620221c9e9db153
tree06492eef7e60052d1a55f124b69f88727dbdbda1
parentcb38ed5cf1c4fdb7454e4b48fb70c396f5acfb21
cpufreq: Acquire the lock in cpufreq_policy_restore() for reading

In cpufreq_policy_restore() before system suspend policy is read from
percpu's cpufreq_cpu_data_fallback.  It's a read operation rather
than a write one, so take the lock for reading in there.

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c