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)
commit2c8db5bef9fb442a5a0d2fee28aed20100362ce3
treefd4fe9b730b7cc0f122accd26ee78cc0c62c04d7
parente21a712a9685488f5ce80495b37b9fdbe96c230d
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