Skip to content

Commit 2b16c63

Browse files
Lifeng Zhengrafaeljw
authored andcommitted
cpufreq: ACPI: Remove set_boost in acpi_cpufreq_cpu_init()
At the end of cpufreq_online() in cpufreq.c, set_boost is executed and the per-policy boost flag is set to mirror the cpufreq_driver boost, so it is not necessary to run set_boost in acpi_cpufreq_cpu_init(). Signed-off-by: Lifeng Zheng <[email protected]> Acked-by: Viresh Kumar <[email protected]> Link: https://patch.msgid.link/[email protected] [ rjw: Changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 03d8b4e commit 2b16c63

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/cpufreq/acpi-cpufreq.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -909,11 +909,6 @@ 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-
set_boost(policy, acpi_cpufreq_driver.boost_enabled);
914-
policy->boost_enabled = acpi_cpufreq_driver.boost_enabled;
915-
}
916-
917912
return result;
918913

919914
err_unreg:

0 commit comments

Comments
 (0)