cpufreq: intel_pstate: Add locking around HWP requests
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 6 Dec 2016 21:32:15 +0000 (13:32 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Dec 2016 00:43:04 +0000 (01:43 +0100)
commitb59fe540539623767cf18045a78fb672b40270d6
tree1239bec645aeecddeb5ba59c9f98d6a113a4f2fb
parent4dd63b49a7b06b6a49841f46d7510962de476c39
cpufreq: intel_pstate: Add locking around HWP requests

To avoid race conditions from multiple threads, increase the scope
of intel_pstate_limits_lock to include HWP requests also.

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