]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:20:57 +0000 (17:20 +0200)
commit91d25d65e05d2b23f3ef9a8d2935cc9e68934cde
tree3282079c39fd3bd621ba47c25ac94604b68e00b7
parent92c151ab8a7815267e5a0910658536bf66396505
ACPI: processor: perflib: Use the "no limit" frequency QoS

BugLink: https://bugs.launchpad.net/bugs/2037005
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
drivers/acpi/processor_perflib.c