]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/power turbostat: Fix missing SYS_LPI counter on some Chromebooks
authorLen Brown <len.brown@intel.com>
Thu, 19 Mar 2020 22:26:05 +0000 (18:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Apr 2020 07:09:58 +0000 (09:09 +0200)
commite490a054cdbeba1c294bfec82edc1feec2609b10
treecfd933417bcc7bc11437b04d867e4bb7e90a5d50
parent786957fe9c6f1b32e62e5295b7101db84d6398b9
tools/power turbostat: Fix missing SYS_LPI counter on some Chromebooks

[ Upstream commit 1f81c5efc020314b2db30d77efe228b7e117750d ]

Some Chromebook BIOS' do not export an ACPI LPIT, which is how
Linux finds the residency counter for CPU and SYSTEM low power states,
that is exports in /sys/devices/system/cpu/cpuidle/*residency_us

When these sysfs attributes are missing, check the debugfs attrubte
from the pmc_core driver, which accesses the same counter value.

Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/power/x86/turbostat/turbostat.c