]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / Hibernate: Hibernate/thaw fixes/improvements
authorBojan Smojver <bojan@rexursive.com>
Sun, 29 Apr 2012 20:42:06 +0000 (22:42 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sun, 29 Apr 2012 20:42:06 +0000 (22:42 +0200)
commit12b2a661f91de6eb7521ccb31098e1f3a4d33676
tree87cd0e876a7e124f3c7e5207d8c8708d938eee25
parent26e0f90fded422f309deb6169dfbccb204435698
PM / Hibernate: Hibernate/thaw fixes/improvements

 1. Do not allocate memory for buffers from emergency pools, unless
    absolutely required. Do not warn about and do not retry non-essential
    failed allocations.

 2. Do not check the amount of free pages left on every single page
    write, but wait until one map is completely populated and then check.

 3. Set maximum number of pages for read buffering consistently, instead
    of inadvertently depending on the size of the sector type.

 4. Fix copyright line, which I missed when I submitted the hibernation
    threading patch.

 5. Dispense with bit shifting arithmetic to improve readability.

 6. Really recalculate the number of pages required to be free after all
    allocations have been done.

 7. Fix calculation of pages required for read buffering. Only count in
    pages that do not belong to high memory.

Signed-off-by: Bojan Smojver <bojan@rexursive.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
kernel/power/swap.c