lkml.org 
[lkml]   [2006]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[Suspend2][ 29/35] [Suspend2] Test filewriter target.
Date
Test the filewriter target when the filewriter_target proc entry is
written.

Signed-off-by: Nigel Cunningham <nigel@suspend2.net>

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

diff --git a/kernel/power/suspend_file.c b/kernel/power/suspend_file.c
index 9947323..56de7d9 100644
--- a/kernel/power/suspend_file.c
+++ b/kernel/power/suspend_file.c
@@ -858,3 +858,17 @@ static int __test_filewriter_target(char
return 1;
}

+static void test_filewriter_target(void)
+{
+ int cant_suspend;
+
+ setting_filewriter_target = 1;
+
+ printk(name_suspend "Filewriter: Testing whether you can suspend:\n");
+ cant_suspend =__test_filewriter_target(filewriter_target, 0);
+
+ printk(name_suspend "Suspending %sabled.\n", cant_suspend ? "dis" : "en");
+
+ setting_filewriter_target = 0;
+}
+
--
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/

\
 
 \ /
  Last update: 2006-06-27 01:02    [W:0.169 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site