]> git.baikalelectronics.ru Git - kernel.git/commit
PM/sleep: Expose suspend stats in sysfs
authorKalesh Singh <kaleshsingh@google.com>
Wed, 31 Jul 2019 21:29:33 +0000 (14:29 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 5 Aug 2019 10:03:18 +0000 (12:03 +0200)
commit482b8ffc9fde9fd8078da2065e4ee142b6c55f3d
treefd4fe9b730b7cc0f122accd26ee78cc0c62c04d7
parent1b1e3f6d5a6ff25a6613c83a142ba0d73a10c16d
PM/sleep: Expose suspend stats in sysfs

Userspace can get suspend stats from the suspend stats debugfs node.
Since debugfs doesn't have stable ABI, expose suspend stats in
sysfs under /sys/power/suspend_stats.

Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/ABI/testing/sysfs-power
kernel/power/main.c