Skip to content

Commit 36527b9

Browse files
Riwen Lurafaeljw
authored andcommitted
ACPI: processor: Remove freq Qos request for all CPUs
The freq Qos request would be removed repeatedly if the cpufreq policy relates to more than one CPU. Then, it would cause the "called for unknown object" warning. Remove the freq Qos request for each CPU relates to the cpufreq policy, instead of removing repeatedly for the last CPU of it. Fixes: a1bb46c ("ACPI: processor: Add QoS requests for all CPUs") Reported-by: Jeremy Linton <[email protected]> Tested-by: Jeremy Linton <[email protected]> Signed-off-by: Riwen Lu <[email protected]> Cc: 5.4+ <[email protected]> # 5.4+ Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 1c23f9e commit 36527b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/processor_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void acpi_thermal_cpufreq_exit(struct cpufreq_policy *policy)
151151
unsigned int cpu;
152152

153153
for_each_cpu(cpu, policy->related_cpus) {
154-
struct acpi_processor *pr = per_cpu(processors, policy->cpu);
154+
struct acpi_processor *pr = per_cpu(processors, cpu);
155155

156156
if (pr)
157157
freq_qos_remove_request(&pr->thermal_req);

0 commit comments

Comments
 (0)