x86, sched: Fix the AMD CPPC maximum performance value on certain AMD Ryzen generations
[linux-2.6-microblaze.git] / drivers / cpufreq / acpi-cpufreq.c
index d1bbc16..7e74504 100644 (file)
@@ -646,7 +646,11 @@ static u64 get_max_boost_ratio(unsigned int cpu)
                return 0;
        }
 
-       highest_perf = perf_caps.highest_perf;
+       if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD)
+               highest_perf = amd_get_highest_perf();
+       else
+               highest_perf = perf_caps.highest_perf;
+
        nominal_perf = perf_caps.nominal_perf;
 
        if (!highest_perf || !nominal_perf) {