]> git.baikalelectronics.ru Git - kernel.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)
committerLen Brown <len.brown@intel.com>
Fri, 20 Mar 2020 04:32:28 +0000 (00:32 -0400)
commit44fb48590d38b67508ee31c8782fdb7a5e8d42f8
tree0d9fa2d6c2f502f33e0ef1cc49ce0466897ca85f
parent9c2b186a404a318f7c15f0dbb04a9641a574a3f3
tools/power turbostat: Fix missing SYS_LPI counter on some Chromebooks

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>
tools/power/x86/turbostat/turbostat.c