Further image preparation work.
commite2d8f105229be8304e9a01c6a8a096571ba7d28e
authorNigel Cunningham <nigel@suspend2.net>
Tue, 8 May 2007 11:03:17 +0000 (8 21:03 +1000)
committerNigel Cunningham <nigel@suspend2.net>
Tue, 8 May 2007 11:16:00 +0000 (8 21:16 +1000)
tree959043dca0eafc590747df90c050b22da224d961
parent1958c9aa95988d3561067ecd1f5ce179133f3d68
Further image preparation work.

Separate out the test for whether everything necessary for suspending is
done into a new function (image_not_ready) and use it in checking whether
to do the image preparation again and to check whether we succeeded in
preparing the image after finishing the loop.

Having done this, we can modify update_image to not have a return value and
not drop out if we fail to get enough storage or such like.

Signed-off-by: Nigel Cunningham <nigel@suspend2.net>
kernel/power/prepare_image.c