kernel-ark/arch/arm
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
..
boot [ARM] 4449/1: more entries in arch/arm/boot/.gitignore 2007-06-25 20:37:35 +01:00
common [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
configs
kernel Introduce fixed sys_sync_file_range2() syscall, implement on PowerPC and ARM 2007-06-28 11:38:30 -07:00
lib [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
mach-aaec2000
mach-at91 PM: introduce set_target method in pm_ops 2007-07-01 12:29:44 -07:00
mach-clps711x
mach-clps7500
mach-davinci
mach-ebsa110
mach-ep93xx
mach-footbridge [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
mach-h720x [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
mach-imx [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
mach-integrator
mach-iop13xx Merge master.kernel.org:/home/rmk/linux-2.6-arm 2007-05-21 10:00:22 -07:00
mach-iop32x
mach-iop33x
mach-ixp4xx [ARM] 4410/1: Remove extern declarations in coyote/ixdpg425-pci.c 2007-05-30 13:15:39 +01:00
mach-ixp23xx [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
mach-ixp2000 [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
mach-ks8695
mach-l7200
mach-lh7a40x [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
mach-netx
mach-ns9xxx [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
mach-omap1 [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
mach-omap2 [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
mach-pnx4008
mach-pxa [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
mach-realview [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
mach-rpc
mach-s3c2400
mach-s3c2410 [ARM] 4415/1: AML5900: fix sparse warnings from map_io 2007-05-30 13:15:30 +01:00
mach-s3c2412 [ARM] 4412/1: S3C2412: reset errata fix 2007-05-30 13:15:23 +01:00
mach-s3c2440 [ARM] 4445/1: ANUBIS: Fix CPLD registers 2007-06-11 09:09:34 +01:00
mach-s3c2442
mach-s3c2443 [ARM] 4414/1: S3C2443: sparse fix for clock.c 2007-05-30 13:15:26 +01:00
mach-sa1100 [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
mach-shark
mach-versatile
mm parse errors in ifdefs 2007-06-01 08:18:28 -07:00
nwfpe [ARM] 4416/1: NWFPE: fix undeclared symbols 2007-05-30 13:15:34 +01:00
oprofile [ARM] Solve buggy smp_processor_id() usage 2007-06-02 21:31:49 +01:00
plat-iop Merge master.kernel.org:/home/rmk/linux-2.6-arm 2007-05-21 10:00:22 -07:00
plat-omap [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
plat-s3c24xx [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
tools
vfp [ARM] VFP: fix section mismatch error 2007-06-10 12:22:20 +01:00
Kconfig
Kconfig-nommu
Kconfig.debug
Makefile