Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit d92467a

Browse files
superm1rafaeljw
authored andcommitted
cpufreq: ACPI: Mark boost policy as enabled when setting boost
When boost is set for CPUs using acpi-cpufreq, the policy is not updated which can cause boost to be incorrectly not reported. Fixes: 218a06a ("cpufreq: Support per-policy performance boost") Link: https://patch.msgid.link/20240626204723.6237-2-mario.limonciello@amd.com Suggested-by: Viresh Kumar <viresh.kumar@linaro.org> Suggested-by: Gautham R. Shenoy <gautham.shenoy@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Cc: All applicable <stable@vger.kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 102fa9c commit d92467a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/cpufreq/acpi-cpufreq.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,8 +890,10 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)
890890
if (perf->states[0].core_frequency * 1000 != freq_table[0].frequency)
891891
pr_warn(FW_WARN "P-state 0 is not max freq\n");
892892

893-
if (acpi_cpufreq_driver.set_boost)
893+
if (acpi_cpufreq_driver.set_boost) {
894894
set_boost(policy, acpi_cpufreq_driver.boost_enabled);
895+
policy->boost_enabled = acpi_cpufreq_driver.boost_enabled;
896+
}
895897

896898
return result;
897899

0 commit comments

Comments
 (0)