[Suspend2][ 09/13] [Suspend2] Manually activate/deactivate the storage manager.

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

 



Provide (via a proc entry) a means whereby the user can manually activate
and deactivate the storage manager for test and configuration purposes.

Signed-off-by: Nigel Cunningham <[email protected]>

 kernel/power/storage.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/kernel/power/storage.c b/kernel/power/storage.c
index fea9276..aa140ea 100644
--- a/kernel/power/storage.c
+++ b/kernel/power/storage.c
@@ -223,3 +223,16 @@ void suspend_cleanup_usm(void)
 	}
 }
 
+static void storage_manager_activate(void)
+{
+	if (storage_manager_action == storage_manager_last_action)
+		return;
+
+	if (storage_manager_action)
+		suspend_prepare_usm();
+	else
+		suspend_cleanup_usm();
+
+	storage_manager_last_action = storage_manager_action;
+}
+

--
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