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>
Showing
- Documentation/ABI/testing/sysfs-devices-power 26 additions, 0 deletionsDocumentation/ABI/testing/sysfs-devices-power
- drivers/base/power/sysfs.c 49 additions, 0 deletionsdrivers/base/power/sysfs.c
- include/linux/device.h 11 additions, 0 deletionsinclude/linux/device.h
- kernel/power/Kconfig 14 additions, 0 deletionskernel/power/Kconfig
Loading
Please register or sign in to comment