UBUNTU: SAUCE: Revert "Revert "cpufreq: amd-pstate: Fix the inconsistency in max frequency units""
BugLink: https://bugs.launchpad.net/bugs/2109609
This reverts commit d76c1093e3 which is
commit 07caf754f696cbb7037e4c0c5da5fdbbbba13364 upstream (linux-6.6.y).
The regression that the original revert addresses only affects kernels
older than 6.9.y that do not include commit ("5547c0ebfc2e cpufreq:
amd-pstate: Unify computation of
{max,min,nominal,lowest_nonlinear}_freq"). However, this commit was
picked up in a stable update [1] for noble that includes v6.9.6, so
noble is not affected by this regression. Unfortunately we later picked
up the revert commit addressing the issue found in older kernels via
another stable update [2] for noble including v6.6.37.
Revert the revert from 6.6.y again so that correct frequencies are
reported.
[1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2074091
[2] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2076435
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Edoardo Canepa <edoardo.canepa@canonical.com>
Acked-by: Edoardo Canepa <edoardo.canepa@canonical.com>
Signed-off-by: Mehmet Basaran <mehmet.basaran@canonical.com>
This commit is contained in:
committed by
Mehmet Basaran
parent
d5e6d2448a
commit
406b0261c8
@@ -718,7 +718,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;
|
||||
policy->cpuinfo.max_freq = cpudata->nominal_freq * 1000;
|
||||
|
||||
policy->max = policy->cpuinfo.max_freq;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user