android_kernel_samsung_msm8976/drivers/acpi
Rafael J. Wysocki c7e0831d38 Hibernation: Check if ACPI is enabled during restore in the right place
The following scenario leads to total confusion of the platform firmware on
some boxes (eg. HPC nx6325):
* Hibernate with ACPI enabled
* Resume passing "acpi=off" to the boot kernel

To prevent this from happening it's necessary to check if ACPI is enabled (and
enable it if that's not the case) _right_ _after_ control has been transfered
from the boot kernel to the image kernel, before device_power_up() is called
(ie.  with interrupts disabled).   Enabling ACPI after calling
device_power_up() turns out to be insufficient.

For this reason, introduce new hibernation callback ->leave() that will be
executed before device_power_up() by the restored image kernel.   To make it
work, it also is necessary to move swsusp_suspend() from swsusp.c to disk.c
(it's name is changed to "create_image", which is more up to the point).

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-18 14:37:20 -07:00
..
dispatcher
events
executer
hardware
namespace
parser
resources
sleep Hibernation: Check if ACPI is enabled during restore in the right place 2007-10-18 14:37:20 -07:00
tables
utilities
ac.c
acpi_memhotplug.c
asus_acpi.c
battery.c
bay.c
blacklist.c
bus.c kobjects: fix up improper use of the kobject name field 2007-10-12 14:51:02 -07:00
button.c
cm_sbs.c
container.c
debug.c
dock.c
ec.c
event.c
fan.c
glue.c
Kconfig
Makefile
numa.c
osl.c drivers/firmware: const-ify DMI API and internals 2007-10-09 20:22:20 -04:00
pci_bind.c
pci_irq.c
pci_link.c
pci_root.c
power.c
processor_core.c ACPI: disable lower idle C-states across suspend/resume 2007-09-22 17:15:34 -07:00
processor_idle.c ACPI: remove the now unused ifdef code 2007-10-12 23:04:23 +02:00
processor_perflib.c
processor_thermal.c
processor_throttling.c
sbs.c
scan.c Driver core: change add_uevent_var to use a struct 2007-10-12 14:51:01 -07:00
system.c
tables.c
thermal.c drivers/firmware: const-ify DMI API and internals 2007-10-09 20:22:20 -04:00
toshiba_acpi.c more trivial signedness fixes in drivers 2007-10-14 12:41:52 -07:00
utils.c
video.c Convert from class_device to device for drivers/video 2007-10-12 14:51:04 -07:00