File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -140,9 +140,13 @@ void acpi_thermal_cpufreq_init(struct cpufreq_policy *policy)
140
140
ret = freq_qos_add_request (& policy -> constraints ,
141
141
& pr -> thermal_req ,
142
142
FREQ_QOS_MAX , INT_MAX );
143
- if (ret < 0 )
143
+ if (ret < 0 ) {
144
144
pr_err ("Failed to add freq constraint for CPU%d (%d)\n" ,
145
145
cpu , ret );
146
+ continue ;
147
+ }
148
+
149
+ thermal_cooling_device_update (pr -> cdev );
146
150
}
147
151
}
148
152
@@ -153,8 +157,12 @@ void acpi_thermal_cpufreq_exit(struct cpufreq_policy *policy)
153
157
for_each_cpu (cpu , policy -> related_cpus ) {
154
158
struct acpi_processor * pr = per_cpu (processors , cpu );
155
159
156
- if (pr )
157
- freq_qos_remove_request (& pr -> thermal_req );
160
+ if (!pr )
161
+ continue ;
162
+
163
+ freq_qos_remove_request (& pr -> thermal_req );
164
+
165
+ thermal_cooling_device_update (pr -> cdev );
158
166
}
159
167
}
160
168
#else /* ! CONFIG_CPU_FREQ */
You can’t perform that action at this time.
0 commit comments