1. 30 Aug, 2003 3 commits
    • Patrick Mochel's avatar
      [acpi] Replace /proc/acpi/sleep · d5bd8347
      Patrick Mochel authored
      - Bad to remove proc file now, even though it's nearly useless. Reinstated
        in the name of compatibility. 
      
      - Restored original semantics - if software_suspend() is enabled, then just
        call that (and never go into low-power state). Otherwise, call acpi_suspend().
      
      - acpi_suspend() is simply a wrapper for pm_suspend(), passing down the right
        argument. This is so we don't have to do everything manually anymore.
      
      - Fixed long-standing bug by checking for "4b" in string written in to 
        determine if we want to enter S4bios.
      d5bd8347
    • Patrick Mochel's avatar
      [swsusp] Restore software_suspend() call. · 36d1f8a3
      Patrick Mochel authored
      - Allows 'backdoor' interface to swsusp, as requested by Pavel. 
      
      - Simply a wrapper to pm_suspend(), though guaranteeing that swsusp is used,
        and system is shutdown (and put into low-power state).
      
      - Call in sys_reboot() changed back to call to software_suspend().
      36d1f8a3
    • Patrick Mochel's avatar
      [swsusp] Use BIO interface when reading from swap. · 774bc11f
      Patrick Mochel authored
      - bios are the preferred method for doing this type of stuff in 2.6. The 
        __bread() uses bio's in the end anyway. 
      
      - bios make it really easy to implement write functionality, so we are able
        to reset the swap signature immediately after checking it during resume.
        So, if something happens while resuming, we will still have valid swap to 
        use. 
      
      - Thanks to Jens for some help in getting it working several months ago.
      774bc11f
  2. 29 Aug, 2003 1 commit
    • Patrick Mochel's avatar
      [swsusp] Minor cleanups in read_suspend_image() · 7431d7eb
      Patrick Mochel authored
      - Make resume_bdev global to file, so we don't have to pass it around (we 
        always use the same one, so it shouldn't make a difference).
      
      - Allocate cur in read_suspend_image(), since it's the only function that
        uses it. 
      
      - Check all errors and make sure we free cur if any happen.
      
      - Make sure to return errors from the functions called, not our own. 
      
      - Free the pagedir if we hit an error after we allocate it. 
      7431d7eb
  3. 27 Aug, 2003 2 commits
  4. 26 Aug, 2003 1 commit
  5. 25 Aug, 2003 4 commits
  6. 22 Aug, 2003 2 commits
  7. 24 Aug, 2003 2 commits
  8. 23 Aug, 2003 5 commits
  9. 22 Aug, 2003 18 commits
  10. 21 Aug, 2003 2 commits