]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: intel_pstate: Refuse to turn off with HWP enabled
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 20 Aug 2020 15:40:02 +0000 (17:40 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 1 Sep 2020 19:13:32 +0000 (21:13 +0200)
commita9f13f451ed785f7360ab1d7d87a8dca17a7994b
treeefb0d93d72f13058d4575c14c3d96225eb49e954
parentbeea5f8bd9170d3d0e6476d33bde88d795ce40b0
cpufreq: intel_pstate: Refuse to turn off with HWP enabled

After commit 752a2a6d588a ("cpufreq: intel_pstate: Implement passive
mode with HWP enabled") it is possible to change the driver status
to "off" via sysfs with HWP enabled, which effectively causes the
driver to unregister itself, but HWP remains active and it forces the
minimum performance, so even if another cpufreq driver is loaded,
it will not be able to control the CPU frequency.

For this reason, make the driver refuse to change the status to
"off" with HWP enabled.

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