Skip to content

Commit ab79c75

Browse files
rafaeljwgregkh
authored andcommitted
cpufreq: intel_pstate: Drop ACPI _PSS states table patching
commit e8a0e30 upstream. After making acpi_processor_get_platform_limit() use the "no limit" value for its frequency QoS request when _PPC returns 0, it is not necessary to replace the frequency corresponding to the first _PSS return package entry with the maximum turbo frequency of the given CPU in intel_pstate_init_acpi_perf_limits() any more, so drop the code doing that along with the comment explaining it. Signed-off-by: Rafael J. Wysocki <[email protected]> Tested-by: Hagar Hemdan <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 602a1cb commit ab79c75

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

drivers/cpufreq/intel_pstate.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -451,20 +451,6 @@ static void intel_pstate_init_acpi_perf_limits(struct cpufreq_policy *policy)
451451
(u32) cpu->acpi_perf_data.states[i].control);
452452
}
453453

454-
/*
455-
* The _PSS table doesn't contain whole turbo frequency range.
456-
* This just contains +1 MHZ above the max non turbo frequency,
457-
* with control value corresponding to max turbo ratio. But
458-
* when cpufreq set policy is called, it will call with this
459-
* max frequency, which will cause a reduced performance as
460-
* this driver uses real max turbo frequency as the max
461-
* frequency. So correct this frequency in _PSS table to
462-
* correct max turbo frequency based on the turbo state.
463-
* Also need to convert to MHz as _PSS freq is in MHz.
464-
*/
465-
if (!global.turbo_disabled)
466-
cpu->acpi_perf_data.states[0].core_frequency =
467-
policy->cpuinfo.max_freq / 1000;
468454
cpu->valid_pss_table = true;
469455
pr_debug("_PPC limits will be enforced\n");
470456

0 commit comments

Comments
 (0)