]> 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:11:09 +0000 (15:11 +0200)
commit23b618b4b20019b75f1b94ea6c59abe9fb19702c
treee3c3c86caa30968abcf6cb4648df82a3e18765dd
parent6c7f5f59f3af8ad02f2e259a052f7255b1ede9c6
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