cpufreq: intel_pstate: Tweak the EPP sysfs interface
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 27 Aug 2020 12:32:12 +0000 (14:32 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 1 Sep 2020 19:14:06 +0000 (21:14 +0200)
commitb388eb58ce47484a330681f09d1d058fe122c744
tree148f489a6fc50b4292df4ae9a0f0d926d4646e37
parentc27a0ccc3c715c55fea6709eab2f9c6f551fcfaa
cpufreq: intel_pstate: Tweak the EPP sysfs interface

Modify the EPP sysfs interface to reject attempts to change the EPP
to values different from 0 ("performance") in the active mode with
the "performance" policy (ie. scaling_governor set to "performance"),
to avoid situations in which the kernel appears to discard data
passed to it via the EPP sysfs attribute.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Documentation/admin-guide/pm/intel_pstate.rst
drivers/cpufreq/intel_pstate.c