]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPI: processor: perflib: Use the "no limit" frequency QoS
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 28 Dec 2022 21:21:49 +0000 (22:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:24:18 +0000 (10:24 +0200)
commitf7fcc0f1b26b5751ec5d6f23a038123f24656e15
tree820c91bc85c269fd390e2ac461b95388e4ca3e9c
parentd701687c898e5358f29ca11bccdfc8f54129e69c
ACPI: processor: perflib: Use the "no limit" frequency QoS

commit c02d5feb6e2f60affc6ba8606d8d614c071e2ba6 upstream.

When _PPC returns 0, it means that the CPU frequency is not limited by
the platform firmware, so make acpi_processor_get_platform_limit()
update the frequency QoS request used by it to "no limit" in that case.

This addresses a problem with limiting CPU frequency artificially on
some systems after CPU offline/online to the frequency that corresponds
to the first entry in the _PSS return package.

Reported-by: Pratyush Yadav <ptyadav@amazon.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Pratyush Yadav <ptyadav@amazon.de>
Tested-by: Pratyush Yadav <ptyadav@amazon.de>
Tested-by: Hagar Hemdan <hagarhem@amazon.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/processor_perflib.c