File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -890,8 +890,10 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)
890
890
if (perf -> states [0 ].core_frequency * 1000 != freq_table [0 ].frequency )
891
891
pr_warn (FW_WARN "P-state 0 is not max freq\n" );
892
892
893
- if (acpi_cpufreq_driver .set_boost )
893
+ if (acpi_cpufreq_driver .set_boost ) {
894
894
set_boost (policy , acpi_cpufreq_driver .boost_enabled );
895
+ policy -> boost_enabled = acpi_cpufreq_driver .boost_enabled ;
896
+ }
895
897
896
898
return result ;
897
899
Original file line number Diff line number Diff line change @@ -1431,7 +1431,8 @@ static int cpufreq_online(unsigned int cpu)
1431
1431
}
1432
1432
1433
1433
/* Let the per-policy boost flag mirror the cpufreq_driver boost during init */
1434
- policy -> boost_enabled = cpufreq_boost_enabled () && policy_has_boost_freq (policy );
1434
+ if (cpufreq_boost_enabled () && policy_has_boost_freq (policy ))
1435
+ policy -> boost_enabled = true;
1435
1436
1436
1437
/*
1437
1438
* The initialization has succeeded and the policy is online.
You can’t perform that action at this time.
0 commit comments