[PATCH v3] cpufreq: CPPC: Enable boost by default

From: Pengjie Zhang

Date: Tue Nov 17 2026 - 05:52:55 EST


The CPPC driver leaves boost disabled by default when Highest Performance
exceeds Nominal Performance. Userspace must explicitly enable boost
before governors can use the full advertised performance range.

For user convenience, set .boost_enabled = true in cppc_cpufreq_driver.
Since cppc_cpufreq_cpu_init() sets policy->boost_supported when
highest_perf > nominal_perf, the cpufreq core will enable boost by
default only for policies that support it.

Signed-off-by: Pengjie Zhang <zhangpengjie2@xxxxxxxxxx>
---
Changes in v3:
- Drop cppc_cpufreq_default_boost_init() and set .boost_enabled = true
statically in cppc_cpufreq_driver (Christian).
- Link to v2: https://lore.kernel.org/all/20261022075901.3436021-1-zhangpengjie2@xxxxxxxxxx/

Changes in v2:
- Drop "even" from the commit message (Christian).
- Link to v1: https://lore.kernel.org/all/20261015015812.867988-1-zhangpengjie2@xxxxxxxxxx/
---
drivers/cpufreq/cppc_cpufreq.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c
index 957fa7775260..1ea16e95c0e9 100644
--- a/drivers/cpufreq/cppc_cpufreq.c
+++ b/drivers/cpufreq/cppc_cpufreq.c
@@ -1059,6 +1059,7 @@ static struct cpufreq_driver cppc_cpufreq_driver = {
.fast_switch = cppc_cpufreq_fast_switch,
.init = cppc_cpufreq_cpu_init,
.exit = cppc_cpufreq_cpu_exit,
+ .boost_enabled = true,
.set_boost = cppc_cpufreq_set_boost,
.attr = cppc_cpufreq_attr,
.name = "cppc_cpufreq",
--
2.33.0