PM / Runtime: Implement autosuspend support
authorAlan Stern <stern@rowland.harvard.edu>
Sat, 25 Sep 2010 21:35:21 +0000 (23:35 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sat, 16 Oct 2010 23:57:48 +0000 (01:57 +0200)
commit15bcb91d7e607d8a2e060f01f7784a7454668da4
tree6d59964cb78ab4b7c93a3c4d06f0dad256b99140
parent7490e44239e60293bca0c2663229050c36c660c2
PM / Runtime: Implement autosuspend support

This patch (as1427) implements the "autosuspend" facility for runtime
PM.  A few new fields are added to the dev_pm_info structure and
several new PM helper functions are defined, for telling the PM core
whether or not a device uses autosuspend, for setting the autosuspend
delay, and for marking periods of device activity.

Drivers that do not want to use autosuspend can continue using the
same helper functions as before; their behavior will not change.  In
addition, drivers supporting autosuspend can also call the old helper
functions to get the old behavior.

The details are all explained in Documentation/power/runtime_pm.txt
and Documentation/ABI/testing/sysfs-devices-power.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Documentation/ABI/testing/sysfs-devices-power
Documentation/power/runtime_pm.txt
drivers/base/power/runtime.c
drivers/base/power/sysfs.c
include/linux/pm.h
include/linux/pm_runtime.h