linux/arch
Rafael J. Wysocki c697eecebc Suspend: Introduce begin() and end() callbacks
On ACPI systems the target state set by acpi_pm_set_target() is
reset by acpi_pm_finish(), but that need not be called if the
suspend fails.  All platforms that use the .set_target() global
suspend callback are affected by analogous issues.

For this reason, we need an additional global suspend callback that
will reset the target state regardless of whether or not the suspend
is successful.  Also, it is reasonable to rename the .set_target()
callback, since it will be used for a different purpose on ACPI
systems (due to ACPI 1.0x code ordering requirements).

Introduce the global suspend callback .end() to be executed at the
end of the suspend sequence and rename the .set_target() global
suspend callback to .begin().

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
2008-02-01 18:30:56 -05:00
..
alpha remove __attribute_used__ 2008-01-28 23:21:18 +01:00
arm Suspend: Introduce begin() and end() callbacks 2008-02-01 18:30:56 -05:00
avr32 all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
blackfin Suspend: Clean up Kconfig (V2) 2008-02-01 18:30:55 -05:00
cris all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
frv Suspend: Clean up Kconfig (V2) 2008-02-01 18:30:55 -05:00
h8300 all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
ia64 Merge branch 'task_killable' of git://git.kernel.org/pub/scm/linux/kernel/git/willy/misc 2008-02-01 11:45:47 +11:00
m32r spinlock: lockbreak cleanup 2008-01-30 13:31:20 +01:00
m68k all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
m68knommu m68knommu: remove dead timer int pending code 2008-02-01 21:02:04 +11:00
mips Suspend: Clean up Kconfig (V2) 2008-02-01 18:30:55 -05:00
parisc spinlock: lockbreak cleanup 2008-01-30 13:31:20 +01:00
powerpc Suspend: Introduce begin() and end() callbacks 2008-02-01 18:30:56 -05:00
ppc Merge branch 'linux-2.6' 2008-01-31 11:25:51 +11:00
s390 all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
sh Suspend: Clean up Kconfig (V2) 2008-02-01 18:30:55 -05:00
sparc [SPARC/SPARC64]: Fix usage of .section .sched.text in assembler code. 2008-01-31 19:32:43 -08:00
sparc64 [SPARC64]: Fix inconsistent .section usage in lib/ 2008-01-31 19:32:44 -08:00
um UML: remove remaining FASTCALL uses 2008-01-30 13:31:14 +01:00
v850 all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
x86 Suspend: Clean up Kconfig (V2) 2008-02-01 18:30:55 -05:00
xtensa Remove references to "make dep" 2008-01-28 23:22:13 +01:00
.gitignore arch: Ignore arch/i386 and arch/x86_64 2008-01-19 21:29:39 -08:00