]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: intel_pstate: Always keep all limits settings in sync
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 30 Dec 2016 14:58:21 +0000 (15:58 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 31 Dec 2016 20:48:44 +0000 (21:48 +0100)
commit15d2dbea7585f5dbe86449882ea1ffd8a5873929
tree52ea31f9e01001b99bcfed20fa659084373bd67f
parenta3be80713256a4db6b118fe6496493d9158854bf
cpufreq: intel_pstate: Always keep all limits settings in sync

Make intel_pstate update per-logical-CPU limits when the global
settings are changed to ensure that they are always in sync and
users will not see confusing values in per-logical-CPU sysfs
attributes.

This also fixes the problem that setting the "no_turbo" global
attribute to 1 in the "passive" mode (ie. when intel_pstate acts
as a regular cpufreq driver) when scaling_governor is set to
"performance" has no effect.

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