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 <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Reviewed-by: Pratyush Yadav <[email protected]>
Tested-by: Pratyush Yadav <[email protected]>
Tested-by: Hagar Hemdan <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 file changed