Skip to content

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/[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]>
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)