[PATCH] cpufreq/amd-pstate: Drop refresh_frequency_limits() from set_boost
From: Farrukh Seyer Hasan
Date: Thu Dec 03 2026 - 08:08:57 EST
Commit 6e39ba4e5a82 ("cpufreq: Add boost_freq_req QoS request") moved
the boost QoS update into policy_set_boost() after calling ->set_boost().
Because amd_pstate_set_boost() still calls refresh_frequency_limits(),
it evaluates policy limits before policy->boost_freq_req is updated.
Drop the redundant call, matching cppc_cpufreq_set_boost().
Fixes: 6e39ba4e5a82 ("cpufreq: Add boost_freq_req QoS request")
Signed-off-by: Farrukh Seyer Hasan <farrukh13hasan31@xxxxxxxxx>
---
drivers/cpufreq/amd-pstate.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c
index 69bfeb923a53..03444a81855e 100644
--- a/drivers/cpufreq/amd-pstate.c
+++ b/drivers/cpufreq/amd-pstate.c
@@ -899,17 +899,13 @@ static int amd_pstate_cpu_boost_update(struct cpufreq_policy *policy, bool on)
static int amd_pstate_set_boost(struct cpufreq_policy *policy, int state)
{
struct amd_cpudata *cpudata = policy->driver_data;
- int ret;
if (!cpudata->boost_supported) {
pr_err("Boost mode is not supported by this processor or SBIOS\n");
return -EOPNOTSUPP;
}
- ret = amd_pstate_cpu_boost_update(policy, state);
- refresh_frequency_limits(policy);
-
- return ret;
+ return amd_pstate_cpu_boost_update(policy, state);
}
static int amd_pstate_init_boost_support(struct amd_cpudata *cpudata)
--
2.56.1