• Patrick Mochel's avatar
    [power] Add initial support for suspend-to-disk. · da94d134
    Patrick Mochel authored
    - Add prototypes for split-up swsusp functions that can be called from PM
      core: 
    
      save()
      write()
      read()
      restore()
      free()
    
    - Base PM core algorithm on existence of these functions, and allow 
      graceful failure at each step. 
    
    - Add pm_resume() function to be called on init to attempt to read swsusp
      image. 
    
    - Add debugging. 
    
    - Make sure we can handle all modes for suspend-to-disk.
    
    - Add empty split-up functions to swsusp. 
    da94d134
swsusp.c 29.1 KB