diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2023-04-17 10:27:05 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-04-20 19:06:12 +0200 |
commit | b52124a78ab34eb0754e32edc0c9996937779176 (patch) | |
tree | 35050fa7febe8f3fb465d98280950c7171f9b194 /drivers/platform/x86/intel/pmc/core.c | |
parent | 6a8f57ae2eb07ab39a6f0ccad60c760743051026 (diff) | |
download | linux-b52124a78ab34eb0754e32edc0c9996937779176.tar.gz linux-b52124a78ab34eb0754e32edc0c9996937779176.tar.bz2 linux-b52124a78ab34eb0754e32edc0c9996937779176.zip |
PM: Add sysfs files to represent time spent in hardware sleep state
Userspace can't easily discover how much of a sleep cycle was spent in a
hardware sleep state without using kernel tracing and vendor specific sysfs
or debugfs files.
To make this information more discoverable, introduce 3 new sysfs files:
1) The time spent in a hw sleep state for last cycle.
2) The time spent in a hw sleep state since the kernel booted
3) The maximum time that the hardware can report for a sleep cycle.
All of these files will be present only if the system supports s2idle.
Reviewed-by: Hans de Goede <hdegoede@redhat.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/platform/x86/intel/pmc/core.c')
0 files changed, 0 insertions, 0 deletions