diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2022-02-25 20:06:46 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-03-03 20:20:06 +0100 |
commit | eb087f305919ee8169ad65665610313e74260463 (patch) | |
tree | 45b3946c04030c3633c7ac865e7cc5d7955b1d5a /drivers/acpi/Kconfig | |
parent | cpuidle: PSCI: Move the `has_lpi` check to the beginning of the function (diff) | |
download | linux-eb087f305919ee8169ad65665610313e74260463.tar.xz linux-eb087f305919ee8169ad65665610313e74260463.zip |
ACPI: processor idle: Check for architectural support for LPI
When `osc_pc_lpi_support_confirmed` is set through `_OSC` and `_LPI` is
populated then the cpuidle driver assumes that LPI is fully functional.
However currently the kernel only provides architectural support for LPI
on ARM. This leads to high power consumption on X86 platforms that
otherwise try to enable LPI.
So probe whether or not LPI support is implemented before enabling LPI in
the kernel. This is done by overloading `acpi_processor_ffh_lpi_probe` to
check whether it returns `-EOPNOTSUPP`. It also means that all future
implementations of `acpi_processor_ffh_lpi_probe` will need to follow
these semantics as well.
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/Kconfig')
0 files changed, 0 insertions, 0 deletions