28 lines
959 B
Diff
28 lines
959 B
Diff
From 16466d169a187b4c650771234de119279346f523 Mon Sep 17 00:00:00 2001
|
|
From: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com>
|
|
Date: Wed, 5 Feb 2025 11:25:15 +0000
|
|
Subject: cpufreq/amd-pstate: Remove the redundant des_perf clamping in
|
|
adjust_perf
|
|
|
|
des_perf is later on clamped between min_perf and max_perf in
|
|
amd_pstate_update. So, remove the redundant clamping from
|
|
amd_pstate_adjust_perf.
|
|
|
|
Signed-off-by: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com>
|
|
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
|
|
---
|
|
drivers/cpufreq/amd-pstate.c | 2 --
|
|
1 file changed, 2 deletions(-)
|
|
|
|
--- a/drivers/cpufreq/amd-pstate.c
|
|
+++ b/drivers/cpufreq/amd-pstate.c
|
|
@@ -703,8 +703,6 @@ static void amd_pstate_adjust_perf(unsig
|
|
if (max_perf < min_perf)
|
|
max_perf = min_perf;
|
|
|
|
- des_perf = clamp_t(unsigned long, des_perf, min_perf, max_perf);
|
|
-
|
|
amd_pstate_update(cpudata, min_perf, des_perf, max_perf, true,
|
|
policy->governor->flags);
|
|
cpufreq_cpu_put(policy);
|