cpufreq: intel_pstate: protect limits variable
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 28 Oct 2016 17:44:52 +0000 (10:44 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 1 Nov 2016 05:10:54 +0000 (06:10 +0100)
commita410c03d668122923ab9b17c0c5728b520edddb4
tree1a7efd942884c001df55c5652ef09f56197ae20e
parent33de45c133b40a129a880c175af4c2bb39dafc88
cpufreq: intel_pstate: protect limits variable

The limits variable gets modified from intel_pstate sysfs and also gets
modified from cpufreq sysfs. So protect with a mutex to keep data
integrity, when they are getting modified from multiple threads.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c