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

Nigel Cunningham
2006-06-27T04:43:56Z

Replace the swsusp reboot hook with one for suspend2.

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

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