diff options
author | 2023-04-17 10:27:05 -0500 | |
---|---|---|
committer | 2023-04-20 19:06:12 +0200 | |
commit | b52124a78ab34eb0754e32edc0c9996937779176 (patch) | |
tree | 35050fa7febe8f3fb465d98280950c7171f9b194 /scripts/generate_rust_analyzer.py | |
parent | Linux 6.3-rc7 (diff) | |
download | linux-rng-b52124a78ab34eb0754e32edc0c9996937779176.tar.xz linux-rng-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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions