]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq/amd-pstate: Fix max_perf updation with schedutil
authorDhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Wed, 5 Feb 2025 11:25:13 +0000 (11:25 +0000)
committerMario Limonciello <mario.limonciello@amd.com>
Wed, 5 Feb 2025 18:18:27 +0000 (12:18 -0600)
commit55db9b73c3a77544efc671d5e796d9674772c330
tree0d92c1d19faf1a4c914f5f3f32733b6bf120c34c
parentd364eee14c682b141f4667efc3c65191339d88bd
cpufreq/amd-pstate: Fix max_perf updation with schedutil

In adjust_perf() callback, we are setting the max_perf to highest_perf,
as opposed to the correct limit value i.e. max_limit_perf. Fix that.

Fixes: 3f7b835fa4d0 ("cpufreq/amd-pstate: Move limit updating code")
Signed-off-by: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20250205112523.201101-3-dhananjay.ugwekar@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c