diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-12-28 22:24:10 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-03 10:24:18 +0200 |
commit | 602a1cbc24a2c464f8b4913ea45815bfc70b629b (patch) | |
tree | 729df59bcaed9f23dcf5b6c6f617373e7db20e14 /drivers/cpufreq | |
parent | f7fcc0f1b26b5751ec5d6f23a038123f24656e15 (diff) | |
download | linux-602a1cbc24a2c464f8b4913ea45815bfc70b629b.tar.gz |
ACPI: processor: perflib: Avoid updating frequency QoS unnecessarily
commit 99387b016022c29234c4ebf9abd34358c6e56532 upstream. Modify acpi_processor_get_platform_limit() to avoid updating its frequency QoS request when the _PPC return value has not changed by comparing that value to the previous _PPC return value stored in the performance_platform_limit field of the struct acpi_processor corresponding to the given CPU. While at it, do the _PPC return value check against the state count earlier, to avoid setting performance_platform_limit to an invalid value, and make acpi_processor_ppc_init() use FREQ_QOS_MAX_DEFAULT_VALUE as the "no limit" frequency QoS for consistency. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Hagar Hemdan <hagarhem@amazon.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/cpufreq')
0 files changed, 0 insertions, 0 deletions