linux-IllusionX/drivers/acpi
Eric W. Biederman b35c67a46b [PATCH] acpi: Don't call acpi_sleep_prepare from acpi_power_off
Now that all of the code paths that call acpi_power_off
have been modified to call either call kernel_power_off
(which calls apci_sleep_prepare by way of acpi_shutdown)
or to call acpi_sleep_prepare directly it is redundant to call
acpi_sleep_prepare from acpi_power_off.

So simplify the code and simply don't call acpi_sleep_prepare.

In addition there is a little error handling done so if we
can't register the acpi class we don't hook pm_power_off.

I think I have done the right thing with the CONFIG_PM define
but I'm not certain.  Can this code even be compiled if
CONFIG_PM is false?

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-07-26 14:35:45 -07:00
..
dispatcher
events
executer
hardware
namespace
parser
resources
sleep [PATCH] acpi: Don't call acpi_sleep_prepare from acpi_power_off 2005-07-26 14:35:45 -07:00
tables
utilities
ac.c
acpi_memhotplug.c
asus_acpi.c
battery.c
blacklist.c
bus.c
button.c
container.c
debug.c
ec.c
event.c
fan.c
glue.c
hotkey.c
ibm_acpi.c
Kconfig
Makefile
motherboard.c
numa.c
osl.c
pci_bind.c
pci_irq.c
pci_link.c
pci_root.c
power.c
processor_core.c
processor_idle.c
processor_perflib.c
processor_thermal.c
processor_throttling.c
scan.c
system.c
tables.c
thermal.c
toshiba_acpi.c
utils.c
video.c