Re: [PATCH] cpufreq: acpi: Don't enable boost on policy exit

From: Nicholas Chin
Date: Fri Apr 18 2025 - 13:06:41 EST


On 2025-04-17 23:58, Viresh Kumar wrote:
> What about something like this instead ? Nicholas, can you give this a try
> along with the $Subject patch (both patches should be applied) ?
>
> diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c
> index 924314cdeebc..71557f2ac22a 100644
> --- a/drivers/cpufreq/acpi-cpufreq.c
> +++ b/drivers/cpufreq/acpi-cpufreq.c
> @@ -909,8 +909,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) {
> policy->boost_supported = true;
> + policy->boost_enabled = boost_state(cpu);
> + }
>
> return result;

Thanks, applying this patch along with the $Subject patch works.