Rafael J. Wysocki 10a1803d66 swsusp: fix hibernation code ordering
Change the code ordering so that hibernation_ops->prepare() is called after
device_suspend().  This is needed so that we don't violate the ACPI
specification, which states that the _PTS and _GTS system-control methods,
executed from acpi_sleep_prepare(), ought to be called after devices have been
put in low power states.

The "Finish" label in hibernation_restore() is moved, because device_suspend()
resumes devices if the suspending of them fails and the restore code ordering
should reflect the hibernation code ordering.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: Nigel Cunningham <nigel@nigel.suspend2.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-19 10:04:42 -07:00
..
2007-07-16 09:05:47 -07:00
2007-07-16 09:05:48 -07:00
2007-07-16 12:05:49 +03:00
2007-07-18 08:47:40 -07:00
2007-07-19 10:04:41 -07:00
2007-07-16 09:05:50 -07:00
2007-07-18 08:47:40 -07:00
2007-07-16 09:05:47 -07:00
2007-07-17 10:23:03 -07:00
2007-07-13 14:14:28 +02:00
2007-07-16 09:05:49 -07:00
2007-07-16 09:05:49 -07:00
2007-07-16 09:05:49 -07:00
2007-07-09 18:51:58 +02:00
2007-07-16 09:05:50 -07:00
2007-07-16 09:05:43 -07:00
2007-07-18 08:47:40 -07:00
2007-07-18 08:47:40 -07:00
2007-07-16 09:05:48 -07:00
2007-07-16 09:05:47 -07:00
2007-07-17 10:23:03 -07:00