]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] swsusp: save image header first
authorRafael J. Wysocki <rjw@sisk.pl>
Fri, 6 Jan 2006 08:17:58 +0000 (00:17 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:43 +0000 (08:33 -0800)
commit208f9520dc20df1e6e4dd1ffaae62ae957fbc777
tree4b45284c5c5c13c41d2723f603ea3645d999ce54
parentf6651bb3cfb5820ef318789a6840b01062ecfb18
[PATCH] swsusp: save image header first

This makes the swsusp_info structure become the header of the image in the
literal sense (ie.  it is saved to the swap and read before any other image
data with the help of the swsusp's swap map structure, so generally it is
treated in the same way as the rest of the image).

The main thing it does is to make swsusp_header contain the offset of the swap
map used to track the image data pages rather than the offset of swsusp_info.
 Simultaneously, swsusp_info becomes the first image page written to the swap.

The other changes are generally consequences of the above with a few
exceptions (there's some consolidation in the image reading part as a few
functions turn into trivial wrappers around something else).

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/power/power.h
kernel/power/swsusp.c