[Suspend2][ 10/13] [Suspend2] Replace swsusp reboot hook.

From: Nigel Cunningham
Date: Tue Jun 27 2006 - 00:43:09 EST


Replace the swsusp reboot hook with one for suspend2.

Signed-off-by: Nigel Cunningham <nigel@xxxxxxxxxxxx>

kernel/sys.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/sys.c b/kernel/sys.c
index 0b6ec0e..aaf29e6 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -737,12 +737,12 @@ asmlinkage long sys_reboot(int magic1, i
unlock_kernel();
return -EINVAL;

-#ifdef CONFIG_SOFTWARE_SUSPEND
+#ifdef CONFIG_SUSPEND2
case LINUX_REBOOT_CMD_SW_SUSPEND:
{
- int ret = software_suspend();
+ suspend2_try_suspend();
unlock_kernel();
- return ret;
+ return 0;
}
#endif


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