cpufreq: intel_pstate: Use locking in intel_cpufreq_verify_policy()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 30 Dec 2016 14:57:11 +0000 (15:57 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 31 Dec 2016 20:48:43 +0000 (21:48 +0100)
commitcad30467963267509d5b0d7d3c9bd1af3b91e720
tree1401116f7b9bce68c4d4c1140b4648c5dcd1919f
parentaa439248ab71bcd2d26a01708dead4dd56616499
cpufreq: intel_pstate: Use locking in intel_cpufreq_verify_policy()

Race conditions are possible if intel_cpufreq_verify_policy()
is executed in parallel with global limits updates from sysfs,
so the invocation of intel_pstate_update_perf_limits() in it
should be carried out under intel_pstate_limits_lock.

Make that happen.

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