Skip to content

Commit 584ee3d

Browse files
Alexandra Yatesrafaeljw
authored andcommitted
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>
1 parent 73124ce commit 584ee3d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/cpufreq/intel_pstate.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,8 @@ static int intel_pstate_set_policy(struct cpufreq_policy *policy)
11011101
policy->max >= policy->cpuinfo.max_freq) {
11021102
pr_debug("intel_pstate: set performance\n");
11031103
limits = &performance_limits;
1104+
if (hwp_active)
1105+
intel_pstate_hwp_set();
11041106
return 0;
11051107
}
11061108

0 commit comments

Comments
 (0)