Files
linux-st/include/linux
Rafael J. Wysocki 2391dae3e3 PM: introduce set_target method in pm_ops
Commit 52ade9b3b9 changed the suspend code
ordering to execute pm_ops->prepare() after the device model per-device
.suspend() calls in order to fix some ACPI-related issues.  Unfortunately, it
broke the at91 platform which assumed that pm_ops->prepare() would be called
before suspending devices.

at91 used pm_ops->prepare() to get notified of the target system sleep state,
so that it could use this information while suspending devices.  However, with
the current suspend code ordering pm_ops->prepare() is called too late for
this purpose.  Thus, at91 needs an additional method in 'struct pm_ops' that
will be used for notifying the platform of the target system sleep state.
Moreover, in the future such a method will also be needed by ACPI.

This patch adds the .set_target() method to 'struct pm_ops' and makes the
suspend code call it, if implemented, before executing the device model
per-device .suspend() calls.  It also modifies the at91 code to use
pm_ops->set_target() instead of pm_ops->prepare().

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Len Brown <lenb@kernel.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-01 12:29:44 -07:00
..
2007-05-14 19:33:46 -04:00
2007-06-16 13:16:16 -07:00
2007-05-14 19:33:47 -04:00
2007-05-11 05:38:26 -04:00
2007-05-23 20:14:12 -07:00
2007-05-21 09:56:57 -07:00
2007-05-10 18:24:13 +02:00
2007-06-01 08:18:29 -07:00
2007-05-31 16:20:15 -04:00
2007-05-31 16:20:14 -04:00
2007-06-24 08:59:11 -07:00
2007-06-18 09:48:41 -07:00
2007-05-11 16:56:02 +02:00
2007-06-08 15:14:30 +02:00
2007-05-11 08:29:36 -07:00
2007-05-11 08:29:34 -07:00
2007-05-15 08:54:00 -07:00
2007-06-08 17:23:34 -07:00
2007-06-27 02:50:08 -04:00
2007-05-18 20:46:30 -07:00
2007-06-21 15:55:12 -07:00
2007-07-01 12:29:44 -07:00
2007-07-01 12:29:44 -07:00
2007-06-07 13:39:34 -07:00
2007-05-17 05:23:06 -07:00
2007-05-11 08:29:36 -07:00
2007-05-11 08:29:36 -07:00
2007-06-24 08:59:12 -07:00
2007-06-16 13:16:16 -07:00
2007-05-21 21:47:27 -07:00
2007-05-11 08:29:34 -07:00
2007-05-11 08:29:36 -07:00
2007-05-11 08:29:35 -07:00
2007-05-11 08:29:35 -07:00
2007-05-21 09:18:19 -07:00