Skip to content

Commit

Permalink
cpufreq: acpi-cpufreq: Zhaoxin: fix incorrect max-freq issue
Browse files Browse the repository at this point in the history
Workaround for incorrect max frequency calculation on Zhaoxin/Centaur CPUs.

Signed-off-by: LeoLiu-oc <[email protected]>
  • Loading branch information
leoliu-oc committed Dec 23, 2024
1 parent 5dea47c commit 5f7681e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/cpufreq/acpi-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,10 @@ static u64 get_max_boost_ratio(unsigned int cpu)
if (acpi_pstate_strict)
return 0;

if (boot_cpu_data.x86_vendor == X86_VENDOR_ZHAOXIN ||
boot_cpu_data.x86_vendor == X86_VENDOR_CENTAUR)
return 0;

ret = cppc_get_perf_caps(cpu, &perf_caps);
if (ret) {
pr_debug("CPU%d: Unable to get performance capabilities (%d)\n",
Expand Down

0 comments on commit 5f7681e

Please sign in to comment.