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

Sibi Sankar quic_sibis at quicinc.com
Tue Feb 27 08:53:09 PST 2024


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 at arm.com>
Signed-off-by: Sibi Sankar <quic_sibis at quicinc.com>
---
 drivers/cpufreq/apple-soc-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)

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;
 		}
 	}
 
-- 
2.34.1




More information about the linux-arm-kernel mailing list