]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Sep 2022 08:27:44 +0000 (10:27 +0200)
commita409c7c4043217579d619c863837bb58e66666a6
tree28ea40e820deca41ea6e849d8febeb6fe4188584
parent0b211ec8e47d2e75d96303fdc751f8fd9dda1091
ACPI: processor: Remove freq Qos request for all CPUs

commit 62636fb2d0481d9d1a016cd8969e2b73a5b6b454 upstream.

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: 340ca74d8cf3 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/processor_thermal.c