diff options
author | Alexandra Yates <alexandra.yates@linux.intel.com> | 2015-11-18 17:58:40 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-11-25 17:37:44 -0500 |
commit | 584ee3dcb1d6232857c1e38bb28d9f6bf0ec89f5 (patch) | |
tree | 2436a5b54cdb62e6a8c4709be5dca9411d2ae912 /drivers/cpufreq/intel_pstate.c | |
parent | 73124ced9cd7d0bceab50888a3d3d3a3c8796b4c (diff) |
intel_pstate: Fix "performance" mode behavior with HWP enabled
If hardware-driven P-state selection (HWP) is enabled, the
"performance" mode of intel_pstate should only allow the processor
to use the highest-performance P-state available. That is not
the case currently, so make it actually happen.
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>
[ rjw: Subject and changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/intel_pstate.c')
-rw-r--r-- | drivers/cpufreq/intel_pstate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 8ad1f958ffe4..4d07cbd2b23c 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c | |||
@@ -1101,6 +1101,8 @@ static int intel_pstate_set_policy(struct cpufreq_policy *policy) | |||
1101 | policy->max >= policy->cpuinfo.max_freq) { | 1101 | policy->max >= policy->cpuinfo.max_freq) { |
1102 | pr_debug("intel_pstate: set performance\n"); | 1102 | pr_debug("intel_pstate: set performance\n"); |
1103 | limits = &performance_limits; | 1103 | limits = &performance_limits; |
1104 | if (hwp_active) | ||
1105 | intel_pstate_hwp_set(); | ||
1104 | return 0; | 1106 | return 0; |
1105 | } | 1107 | } |
1106 | 1108 | ||