diff mbox series

[2/2] cpufreq: apple-soc: Align per-policy and global boost flags

Message ID 20240227165309.620422-3-quic_sibis@quicinc.com (mailing list archive)
State Not Applicable
Headers show
Series Fix per-policy boost behavior | expand

Commit Message

Sibi Sankar Feb. 27, 2024, 4:53 p.m. UTC
With the cpufreq_driver.boost_enabled flag set by default, the per-policy
boost flags are left in a disabled state. Fix this by enabling the
per-policy boost flag by default on policies supporting boost.

Logs:
root:/sys/devices/system/cpu/cpufreq# cat boost policy*/boost
1
0
0

Fixes: 218a06a79d9a ("cpufreq: Support per-policy performance boost")
Reported-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
---
 drivers/cpufreq/apple-soc-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/cpufreq/apple-soc-cpufreq.c b/drivers/cpufreq/apple-soc-cpufreq.c
index 021f423705e1..b85c250e30d0 100644
--- a/drivers/cpufreq/apple-soc-cpufreq.c
+++ b/drivers/cpufreq/apple-soc-cpufreq.c
@@ -289,6 +289,7 @@  static int apple_soc_cpufreq_init(struct cpufreq_policy *policy)
 		} else {
 			apple_soc_cpufreq_hw_attr[1] = &cpufreq_freq_attr_scaling_boost_freqs;
 			apple_soc_cpufreq_driver.boost_enabled = true;
+			policy->boost_enabled = true;
 		}
 	}