• Rafael J. Wysocki's avatar
    PM: Remove power_state.event checks from suspend core code · 1c3f7d1c
    Rafael J. Wysocki authored
    The suspend routines should be called for every device during a system sleep
    transition, regardless of the device's state, so that drivers can regard these
    method calls as notifications that the system is about to go to sleep, rather
    than as directives to put their devices into the 'off' state.
    
    This is documented in Documentation/power/devices.txt and is already done in
    the core resume code, so it seems reasonable to make the core suspend code
    behave accordingly.
    Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    1c3f7d1c
suspend.c 5.65 KB