Revert "cpufreq: amd-pstate: Fix the inconsistency in max frequency units"
This reverts commit82590ce3a0which is commite4731baaf2upstream. It causes a regression in kernels older than 6.9.y, so drop it from here. Link: https://lore.kernel.org/r/18882bfe-4ca5-495c-ace5-b9bcab796ae5@amd.com Reported-by: Lars Wendler <wendler.lars@web.de> Cc: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com> Cc: Mario Limonciello <mario.limonciello@amd.com> Cc: Gautham R. Shenoy <gautham.shenoy@amd.com> Cc: Peter Jung <ptr1337@cachyos.org> Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -424,7 +424,7 @@ static int amd_pstate_set_boost(struct cpufreq_policy *policy, int state)
|
||||
if (state)
|
||||
policy->cpuinfo.max_freq = cpudata->max_freq;
|
||||
else
|
||||
policy->cpuinfo.max_freq = cpudata->nominal_freq * 1000;
|
||||
policy->cpuinfo.max_freq = cpudata->nominal_freq;
|
||||
|
||||
policy->max = policy->cpuinfo.max_freq;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user