]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: intel_pstate: Do not use performance_limits in passive mode
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 2 Mar 2017 22:22:29 +0000 (23:22 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 4 Mar 2017 00:38:41 +0000 (01:38 +0100)
commitb2c24ea18a99a7085f4c52d4aae406470f731c0d
treec099a35390efe7cb91fe5381ebd9485f98eeb952
parent1e3c619f93f79a3afd60074548b013bb4029849f
cpufreq: intel_pstate: Do not use performance_limits in passive mode

Using performance_limits in the passive mode doesn't make
sense, because in that mode the global limits are applied to the
frequency selected by the scaling governor.

The maximum and minimum P-state limits in performance_limits are both
set to 100 percent which will put all CPUs into the turbo range
regardless of what governor is used and what frequencies are
selected by it (that is particularly undesirable on CPUs with the
generic powersave governor attached).

For this reason, make intel_pstate_register_driver() always point
limits to powersave_limits in the passive mode.

Fixes: 318159d6f3e7 (cpufreq: intel_pstate: Generic governors support)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c