]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ACPI: Separate invocations of _GTS and _BFS from _PTS and _WAK
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 7 Jan 2008 23:05:21 +0000 (00:05 +0100)
committerLen Brown <len.brown@intel.com>
Fri, 1 Feb 2008 23:30:56 +0000 (18:30 -0500)
commitc95d47a868f35cd47643d116a3c680cdaa954df8
tree36e3b820c8bb0c1c962029ce5a28c6e3251443a9
parentc697eecebc6cfc0b393afea3c4ff1a5041526ad1
ACPI: Separate invocations of _GTS and _BFS from _PTS and _WAK

The execution of ACPI global control methods _GTS and _BFS is
currently tied to the preparation to enter a sleep state and to the
leaving of the sleep state, respectively.  However, these functions
are called before disabling the nonboot CPUs and after enabling
them, respectively (in fact, on ACPI 1.0x systems the first of them
ought to be called before suspending devices), while according to the
ACPI specification, _GTS is to be executed right prior to entering
the system sleep state and _BFS is to be executed right after the
platfor firmware has returned control to the OS on wake up.

Move the execution of _GTS and _BFS to the right places.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/hardware/hwsleep.c
drivers/acpi/sleep/main.c
include/acpi/acpixf.h