Commit a6c6ead
committed
cpufreq: intel_pstate: Set P-state upfront in performance mode
After commit a4675fb (cpufreq: intel_pstate: Replace timers with
utilization update callbacks) the cpufreq governor callbacks may not
be invoked on NOHZ_FULL CPUs and, in particular, switching to the
"performance" policy via sysfs may not have any effect on them. That
is a problem, because it usually is desirable to squeeze the last
bit of performance out of those CPUs, so work around it by setting
the maximum P-state (within the limits) in intel_pstate_set_policy()
upfront when the policy is CPUFREQ_POLICY_PERFORMANCE.
Fixes: a4675fb (cpufreq: intel_pstate: Replace timers with utilization update callbacks)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>1 parent c6fe46a commit a6c6ead
1 file changed
Lines changed: 25 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1142 | 1142 | | |
1143 | 1143 | | |
1144 | 1144 | | |
1145 | | - | |
| 1145 | + | |
1146 | 1146 | | |
1147 | | - | |
1148 | | - | |
1149 | 1147 | | |
1150 | 1148 | | |
1151 | 1149 | | |
| |||
1157 | 1155 | | |
1158 | 1156 | | |
1159 | 1157 | | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
1160 | 1172 | | |
1161 | 1173 | | |
1162 | 1174 | | |
| |||
1491 | 1503 | | |
1492 | 1504 | | |
1493 | 1505 | | |
1494 | | - | |
| 1506 | + | |
1495 | 1507 | | |
1496 | 1508 | | |
1497 | 1509 | | |
| |||
1535 | 1547 | | |
1536 | 1548 | | |
1537 | 1549 | | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
1538 | 1559 | | |
1539 | 1560 | | |
1540 | 1561 | | |
| |||
0 commit comments