]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Apr 2020 07:08:39 +0000 (09:08 +0200)
commite4825591a1c2aef3d996b6286ae7c24488d2f93e
tree14676bc2c10225d44d659073fcd74959880ea5fb
parent5a7ddb93d90d442624af64a5ddde49f13652b8bc
tools/power turbostat: Fix missing SYS_LPI counter on some Chromebooks

[ Upstream commit 44fb48590d38b67508ee31c8782fdb7a5e8d42f8 ]

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