[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240626204723.6237-2-mario.limonciello@amd.com>
Date: Wed, 26 Jun 2024 15:47:23 -0500
From: Mario Limonciello <mario.limonciello@....com>
To: <linux-pm@...r.kernel.org>
CC: <linux-kernel@...r.kernel.org>, Mario Limonciello
<mario.limonciello@....com>, Viresh Kumar <viresh.kumar@...aro.org>, "Gautham
R . Shenoy" <gautham.shenoy@....com>, Sibi Sankar <quic_sibis@...cinc.com>,
Dietmar Eggemann <dietmar.eggemann@....com>, Dhruva Gole <d-gole@...com>,
Yipeng Zou <zouyipeng@...wei.com>, "Rafael J . Wysocki"
<rafael.j.wysocki@...el.com>
Subject: [PATCH v2 2/2] cpufreq: acpi: Mark boost policy as enabled when setting boost
When boost is set for CPUs using acpi-cpufreq the policy is not
updated which can cause boost to be incorrectly not reported.
Suggested-by: Viresh Kumar <viresh.kumar@...aro.org>
Suggested-by: Gautham R. Shenoy <gautham.shenoy@....com>
Signed-off-by: Mario Limonciello <mario.limonciello@....com>
---
Cc: Sibi Sankar <quic_sibis@...cinc.com>
Cc: Dietmar Eggemann <dietmar.eggemann@....com>
Cc: Viresh Kumar <viresh.kumar@...aro.org>
Cc: Dhruva Gole <d-gole@...com>
Cc: Yipeng Zou <zouyipeng@...wei.com>
Cc: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
v1->v2:
* Move to init as suggested by Viresh
---
drivers/cpufreq/acpi-cpufreq.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c
index 2fc82831bddd..fa2664f9f259 100644
--- a/drivers/cpufreq/acpi-cpufreq.c
+++ b/drivers/cpufreq/acpi-cpufreq.c
@@ -888,8 +888,10 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)
if (perf->states[0].core_frequency * 1000 != freq_table[0].frequency)
pr_warn(FW_WARN "P-state 0 is not max freq\n");
- if (acpi_cpufreq_driver.set_boost)
+ if (acpi_cpufreq_driver.set_boost) {
set_boost(policy, acpi_cpufreq_driver.boost_enabled);
+ policy->boost_enabled = acpi_cpufreq_driver.boost_enabled;
+ }
return result;
--
2.43.0
Powered by blists - more mailing lists