PM: Add facility for advanced testing of async suspend/resume
commit5a2eb8585f3b38e01e30aacaa8b985a1520a993d
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 23 Jan 2010 21:25:23 +0000 (23 22:25 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 26 Feb 2010 19:39:10 +0000 (26 20:39 +0100)
tree471b33cc48cf48ed491e8b3f2934bfb3fa9e81e1
parent0e06b4a891c6a108412fe24b4500f499da2cf8a1
PM: Add facility for advanced testing of async suspend/resume

Add configuration switch CONFIG_PM_ADVANCED_DEBUG for compiling in
extra PM debugging/testing code allowing one to access some
PM-related attributes of devices from the user space via sysfs.

If CONFIG_PM_ADVANCED_DEBUG is set, add sysfs attribute power/async
for every device allowing the user space to access the device's
power.async_suspend flag and modify it, if desired.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Documentation/ABI/testing/sysfs-devices-power
drivers/base/power/sysfs.c
include/linux/device.h
kernel/power/Kconfig