• Patrick Mochel's avatar
    [Power Mgmt] Consolidate pmdisk and swsusp low-level handling. · 44ea4dc0
    Patrick Mochel authored
    - Split do_magic into swsusp_arch_suspend() and swsusp_arch_resume().
    - Clean up based on pmdisk implementation
      - Only save registers we need to.
      - Use rep;movsl for copying, rather than doing each byte.
    - Create swsusp_suspend and swsusp_resume wrappers for calling the assmebly
      routines that:
      - Call {save,restore}_processor_state() in each. 
      - Disable/enable interrupts in each. 
    - Call swsusp_{suspend,restore} in software_{suspend,resume}
    - Kill all the do_magic_* functions.
    - Remove prototypes from linux/suspend.h
    - Remove similar pmdisk functions.
    - Update calls in kernel/power/disk.c to use swsusp versions.
    44ea4dc0
Makefile 70 Bytes