]> git.baikalelectronics.ru Git - kernel.git/commit
x86_64: Fix S3 fail path
authorJiri Slaby <jirislaby@gmail.com>
Sun, 15 Feb 2009 21:46:45 +0000 (22:46 +0100)
committerLen Brown <len.brown@intel.com>
Sun, 22 Feb 2009 02:58:18 +0000 (21:58 -0500)
commit1b3e6090aa0e471160845f0f3fc9613db16844cc
treeb83d864329067e9a8137b8cb4bcd5f75266885c5
parent555da58411435d0b777299d01d438eb83c32b335
x86_64: Fix S3 fail path

As acpi_enter_sleep_state can fail, take this into account in
do_suspend_lowlevel and don't return to the do_suspend_lowlevel's
caller. This would break (currently) fpu status and preempt count.

Technically, this means use `call' instead of `jmp' and `jmp' to
the `resume_point' after the `call' (i.e. if
acpi_enter_sleep_state returns=fails). `resume_point' will handle
the restore of fpu and preempt count gracefully.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
arch/x86/kernel/acpi/wakeup_64.S