cpufreq: intel_pstate: Set EPP/EPB to 0 in performance mode
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 25 Nov 2016 00:07:10 +0000 (16:07 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 28 Nov 2016 13:23:56 +0000 (14:23 +0100)
commit8442885fca09b2d26375b9fe507759879a6f661e
tree765281d711d05823b71141512d76f3755c95a72d
parentd5dd33d9de0d50db7f3ba221f9c4e4f74e61a69d
cpufreq: intel_pstate: Set EPP/EPB to 0 in performance mode

When user has selected performance policy, then set the EPP (Energy
Performance Preference) or EPB (Energy Performance Bias) to maximum
performance mode.

Also when user switch back to powersave, then restore EPP/EPB to last
EPP/EPB value before entering performance mode. If user has not changed
EPP/EPB manually then it will be power on default value.

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