]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ACPI / PM: LPIT: Register sysfs attributes based on FADT
authorRajneesh Bhardwaj <rajneesh.bhardwaj@linux.intel.com>
Fri, 28 Sep 2018 08:54:02 +0000 (14:24 +0530)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:58:14 +0000 (19:58 -0600)
commit52e391c49495524f93d817e5282a1f63475ab829
tree89a6b9deb7f2d5463ba2b7673a0ba433cc376716
parentfa808b2bc28c53fdc2f14815ac6fba12ad91af2c
ACPI / PM: LPIT: Register sysfs attributes based on FADT

BugLink: https://bugs.launchpad.net/bugs/1836802
[ Upstream commit 1cdda9486f5103fb133f88e662e48c504adbb779 ]

ACPI Low Power S0 Idle capabilities are announced via FADT table and can
be used to inform the kernel about the presence of one or more Low Power
Idle (LPI) entries as descried in LPIT table. LPIT table can exist
independently even if the FADT S0 Idle flag is not set and thus it could
confuse user since the following cpuidle attributes are created.

/sys/devices/system/cpu/cpuidle/low_power_idle_cpu_residency_us
/sys/devices/system/cpu/cpuidle/low_power_idle_system_residency_us

Presence or absence of above attributes could mean that the given
platform supports S0ix state or not.

This change allows to create the above cpuidle attributes only if
FADT table supports Low Power S0 Idle.

Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/acpi/acpi_lpit.c