[Suspend2][ 03/19] [Suspend2] Attempt to parse resume device (wrapped).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux