• Patrick Mochel's avatar
    [Power Mgmt] Merge swsusp entry points with the PM core. · e2676af6
    Patrick Mochel authored
    - Add {enable,disable}_nonboot_cpus() to prepare() and finish() in 
      kernel/power/disk.c
    - Move swsusp __setup options there. Remove resume_status variable in favor
      of simpler 'noresume' variable, and check it in pm_resume().
    - Remove software_resume() from swsusp; rename pm_resume() to software_resume().
      The latter is considerably cleaner, and leverages the core code.
    - Move software_suspend() to kernel/power/main.c and shrink it down a 
      wrapper that  takes pm_sem and calls pm_suspend_disk(), which does the 
      same as the old software_suspend() did. 
      This keeps the same entry points (via ACPI sleep and the reboot() syscall),
      but actually allows those to use the low-level power states of the system
      rather than always shutting off the system.
    - Remove now-unused functions from swsusp. 
    e2676af6
disk.c 7 KB