From: Farrukh Seyer Hasan <farrukh13hasan31@gmail.com>
To: Mario Limonciello <mario.limonciello@amd.com>,
Huang Rui <ray.huang@amd.com>,
"Rafael J . Wysocki" <rafael@kernel.org>,
Viresh Kumar <viresh.kumar@linaro.org>
Cc: Perry Yuan <perry.yuan@amd.com>,
K Prateek Nayak <kprateek.nayak@amd.com>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
Farrukh Seyer Hasan <farrukh13hasan31@gmail.com>
Subject: [PATCH] cpufreq/amd-pstate: Drop refresh_frequency_limits() from set_boost
Date: Thu, 3 Dec 2026 18:37:58 +0530 [thread overview]
Message-ID: <20261203130758.38506-2-farrukh13hasan31@gmail.com> (raw)
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@gmail.com>
---
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
reply other threads:[~2026-12-03 13:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203130758.38506-2-farrukh13hasan31@gmail.com \
--to=farrukh13hasan31@gmail.com \
--cc=kprateek.nayak@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--cc=perry.yuan@amd.com \
--cc=rafael@kernel.org \
--cc=ray.huang@amd.com \
--cc=viresh.kumar@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®