• A
    PM / Runtime: Implement autosuspend support · 15bcb91d
    Alan Stern 提交于
    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: NAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
    15bcb91d
runtime.c 33.0 KB