Messages in this thread Patch in this message | | | From | Nigel Cunningham <> | Subject | [Suspend2][ 26/35] [Suspend2] Filewriter mark that attempted to resume. | Date | Tue, 27 Jun 2006 08:40:32 +1000 |
| |
Set the flag in an image header that says we've tried to resume before.
Signed-off-by: Nigel Cunningham <nigel@suspend2.net>
kernel/power/suspend_file.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/kernel/power/suspend_file.c b/kernel/power/suspend_file.c index 5a1bfe6..20d0807 100644 --- a/kernel/power/suspend_file.c +++ b/kernel/power/suspend_file.c @@ -788,3 +788,14 @@ static int filewriter_image_exists(void) return filewriter_signature_op(GET_IMAGE_EXISTS); } +/* + * Mark resume attempted. + * + * Record that we tried to resume from this image. + */ + +static void filewriter_mark_resume_attempted(void) +{ + filewriter_signature_op(MARK_RESUME_ATTEMPTED); +} + -- Nigel Cunningham nigel at suspend2 dot net - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |