• Patrick Mochel's avatar
    [power] Improve suspend sequence. · e533deb5
    Patrick Mochel authored
    - Expand pm_power_down() into struct pm_ops, with ->prepare(), ->enter() 
      and ->finish() methods, so the platform drivers get called to do start
      and stop work during suspend sequence.
    
    - Make sure devices are suspended/resumed in enter_state(), and that they
      are powered down in pm_suspend_mem() and pm_suspend_standby().
    
    - Call ->prepare() in suspend_prepare() and ->finish() in suspend_finish().
    e533deb5
pm.h 4.78 KB