]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cpufreq: amd-pstate: Fix min_perf assignment in amd_pstate_adjust_perf()
authorTor Vic <torvic9@mailbox.org>
Fri, 9 Feb 2024 15:42:26 +0000 (16:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:18 +0000 (15:28 +0200)
commit868e3264f236ab9a14d62cd09d797f0c10a9823b
treef13a9723ba9cf00eecc68e818e6f6478579eebbb
parente056484f189b72bd34de9f2565bd51e73183d75f
cpufreq: amd-pstate: Fix min_perf assignment in amd_pstate_adjust_perf()

[ Upstream commit b26ffbf800ae3c8d01bdf90d9cd8a37e1606ff06 ]

In the function amd_pstate_adjust_perf(), the 'min_perf' variable is set
to 'highest_perf' instead of 'lowest_perf'.

Fixes: 1d215f0319c2 ("cpufreq: amd-pstate: Add fast switch function for AMD P-State")
Reported-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Reviewed-by: Perry Yuan <Perry.Yuan@amd.com>
Signed-off-by: Tor Vic <torvic9@mailbox.org>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Cc: 6.1+ <stable@vger.kernel.org> # 6.1+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cpufreq/amd-pstate.c