ACPI: processor: Remove freq Qos request for all CPUs
authorRiwen Lu <luriwen@kylinos.cn>
Tue, 23 Aug 2022 07:43:42 +0000 (15:43 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Aug 2022 16:09:06 +0000 (18:09 +0200)
commit36527b9d882362567ceb4eea8666813280f30e6f
tree9869805c78287df456f60abbf9dfcb7a608130cf
parent1c23f9e627a7b412978b4e852793c5e3c3efc555
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: a1bb46c36ce3 ("ACPI: processor: Add QoS requests for all CPUs")
Reported-by: Jeremy Linton <Jeremy.Linton@arm.com>
Tested-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Riwen Lu <luriwen@kylinos.cn>
Cc: 5.4+ <stable@vger.kernel.org> # 5.4+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_thermal.c