hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/cpufreq/intel_pstate.c
....@@ -443,20 +443,6 @@
443443 (u32) cpu->acpi_perf_data.states[i].control);
444444 }
445445
446
- /*
447
- * The _PSS table doesn't contain whole turbo frequency range.
448
- * This just contains +1 MHZ above the max non turbo frequency,
449
- * with control value corresponding to max turbo ratio. But
450
- * when cpufreq set policy is called, it will call with this
451
- * max frequency, which will cause a reduced performance as
452
- * this driver uses real max turbo frequency as the max
453
- * frequency. So correct this frequency in _PSS table to
454
- * correct max turbo frequency based on the turbo state.
455
- * Also need to convert to MHz as _PSS freq is in MHz.
456
- */
457
- if (!global.turbo_disabled)
458
- cpu->acpi_perf_data.states[0].core_frequency =
459
- policy->cpuinfo.max_freq / 1000;
460446 cpu->valid_pss_table = true;
461447 pr_debug("_PPC limits will be enforced\n");
462448
....@@ -777,6 +763,8 @@
777763 err = cpufreq_start_governor(policy);
778764 if (!ret)
779765 ret = err;
766
+ } else {
767
+ ret = 0;
780768 }
781769 }
782770