]> Git Repo - J-linux.git/commitdiff
cpufreq: ACPI: Mark boost policy as enabled when setting boost
authorMario Limonciello <[email protected]>
Wed, 26 Jun 2024 20:47:23 +0000 (15:47 -0500)
committerRafael J. Wysocki <[email protected]>
Mon, 1 Jul 2024 16:10:52 +0000 (18:10 +0200)
When boost is set for CPUs using acpi-cpufreq, the policy is not
updated which can cause boost to be incorrectly not reported.

Fixes: 218a06a79d9a ("cpufreq: Support per-policy performance boost")
Link: https://patch.msgid.link/[email protected]
Suggested-by: Viresh Kumar <[email protected]>
Suggested-by: Gautham R. Shenoy <[email protected]>
Signed-off-by: Mario Limonciello <[email protected]>
Reviewed-by: Gautham R. Shenoy <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Cc: All applicable <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/cpufreq/acpi-cpufreq.c

index 37f1cdf46d291800c6ff5487a96abacebb8dc43f..4ac3a35dcd983ccefc89277d69b2ca8ef169924d 100644 (file)
@@ -890,8 +890,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;
 
This page took 0.052151 seconds and 4 git commands to generate.