[Suspend2][ 03/19] [Suspend2] Attempt to parse resume device (wrapped).
From: Nigel Cunningham
Date: Mon Jun 26 2006 - 18:35:30 EST
Add a version that attempts to parse the resume2= parameter, but wraps the
call in calls to enable and disable any storage (such as network storage)
configured via the userspace storage manager.
Signed-off-by: Nigel Cunningham <nigel@xxxxxxxxxxxx>
kernel/power/io.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/kernel/power/io.c b/kernel/power/io.c
index 52f538d..bfe4468 100644
--- a/kernel/power/io.c
+++ b/kernel/power/io.c
@@ -104,3 +104,10 @@ cleanup:
return returning;
}
+void attempt_to_parse_resume_device2(void)
+{
+ suspend_prepare_usm();
+ suspend_attempt_to_parse_resume_device();
+ suspend_cleanup_usm();
+}
+
--
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/