Skip to content

Commit be6b868

Browse files
committed
cpufreq: acpi: Set policy->boost_supported
With a later commit, the cpufreq core will call the ->set_boost() callback only if the policy supports boost frequency. The boost_supported flag is set by the cpufreq core if policy->freq_table is set and one or more boost frequencies are present. For other drivers, the flag must be set explicitly. Signed-off-by: Viresh Kumar <[email protected]>
1 parent 1f7d1ba commit be6b868

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/cpufreq/acpi-cpufreq.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,9 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)
909909
if (perf->states[0].core_frequency * 1000 != freq_table[0].frequency)
910910
pr_warn(FW_WARN "P-state 0 is not max freq\n");
911911

912+
if (acpi_cpufreq_driver.set_boost)
913+
policy->boost_supported = true;
914+
912915
return result;
913916

914917
err_unreg:

0 commit comments

Comments
 (0)