1. 26 6月, 2006 1 次提交
  2. 25 6月, 2006 1 次提交
  3. 23 6月, 2006 6 次提交
    • R
      [PATCH] swsusp: use less memory during resume · 968808b8
      Rafael J. Wysocki 提交于
      Make swsusp allocate only as much memory as needed to store the image data
      and metadata during resume.
      
      Without this patch swsusp additionally allocates many page frames that will
      conflict with the "original" locations of the image data and are considered
      as "unsafe", treating them as "eaten" pages (ie.  allocated but unusable).
      
      The patch makes swsusp allocate as many pages as it'll need to store the
      data read from the image in one shot, creating a list of allocated "safe"
      pages, and use the observation that all pages allocated by it are marked
      with the PG_nosave and PG_nosave_free flags set.   Namely, when it's about
      to load an image page, swsusp can check whether the page frame
      corresponding to the "original" location of this page has been allocated
      (ie.  if the page frame has the PG_nosave and PG_nosave_free flags set) and
      if so, it can load the page directly into this page frame.   Otherwise it
      uses an allocated "safe" page from the list to store the data that will be
      copied to their "original" location later on.
      
      This allows us to save many page copyings and page allocations during
      resume and in the future it may allow us to load images greater than 50% of
      the normal zone.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: N"Pavel Machek" <pavel@suse.cz>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      968808b8
    • A
      [PATCH] kernel/power/snapshot.c: cleanups · 7bff24e2
      Adrian Bunk 提交于
      - make needlessly global functions static
      - make dummy functions static inline
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Acked-by: NPavel Machek <pavel@ucw.cz>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      7bff24e2
    • R
      [PATCH] swsusp: take lowmem reserves into account · a938c356
      Rafael J. Wysocki 提交于
      swsusp allocates memory from the normal zone, so it cannot use lowmem
      reserve pages from the lower zones.  Therefore it should not count these
      pages as available to it.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Cc: Pavel Machek <pavel@ucw.cz>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      a938c356
    • S
      [PATCH] swsusp: add architecture special saveable pages support · ce4ab001
      Shaohua Li 提交于
      1. Add architecture specific pages save/restore support.  Next two patches
         will use this to save/restore 'ACPI NVS' pages.
      
      2. Allow reserved pages 'nosave'.  This could avoid save/restore BIOS
         reserved pages.
      Signed-off-by: NShaohua Li <shaohua.li@intel.com>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
      Cc: Nigel Cunningham <nigel@suspend2.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      ce4ab001
    • R
      [PATCH] swsusp: rework memory shrinker · d6277db4
      Rafael J. Wysocki 提交于
      Rework the swsusp's memory shrinker in the following way:
      
      - Simplify balance_pgdat() by removing all of the swsusp-related code
        from it.
      
      - Make shrink_all_memory() use shrink_slab() and a new function
        shrink_all_zones() which calls shrink_active_list() and
        shrink_inactive_list() directly for each zone in a way that's optimized
        for suspend.
      
      In shrink_all_memory() we try to free exactly as many pages as the caller
      asks for, preferably in one shot, starting from easier targets.   If slab
      caches are huge, they are most likely to have enough pages to reclaim.
       The inactive lists are next (the zones with more inactive pages go first)
      etc.
      
      Each time shrink_all_memory() attempts to shrink the active and inactive
      lists for each zone in 5 passes.   In the first pass, only the inactive
      lists are taken into consideration.   In the next two passes the active
      lists are also shrunk, but mapped pages are not reclaimed.   In the last
      two passes the active and inactive lists are shrunk and mapped pages are
      reclaimed as well.  The aim of this is to alter the reclaim logic to choose
      the best pages to keep on resume and improve the responsiveness of the
      resumed system.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: NCon Kolivas <kernel@kolivas.org>
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      d6277db4
    • A
      [PATCH] suspend_console() warning fix · 6cc07191
      Andrew Morton 提交于
      kernel/power/main.c: In function 'suspend_prepare':
      kernel/power/main.c:89: warning: implicit declaration of function 'suspend_console'
      kernel/power/main.c: In function 'suspend_finish':
      kernel/power/main.c:137: warning: implicit declaration of function 'resume_console'
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      6cc07191
  4. 20 6月, 2006 1 次提交
  5. 28 4月, 2006 1 次提交
  6. 20 4月, 2006 1 次提交
  7. 15 4月, 2006 1 次提交
  8. 01 4月, 2006 2 次提交
  9. 27 3月, 2006 1 次提交
  10. 26 3月, 2006 1 次提交
  11. 23 3月, 2006 12 次提交
  12. 18 2月, 2006 1 次提交
  13. 16 2月, 2006 1 次提交
  14. 08 2月, 2006 2 次提交
  15. 02 2月, 2006 2 次提交
  16. 15 1月, 2006 1 次提交
  17. 07 1月, 2006 5 次提交