]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] acpi_shutdown: Only prepare for power off on power_off
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 27 Aug 2005 06:56:18 +0000 (00:56 -0600)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 27 Aug 2005 17:11:40 +0000 (10:11 -0700)
commitbc880ddc2746e7c84a6949d736360516afff7728
tree26d82a3ea3f1b7be05468ae7e811775851a06731
parent066430fa274aeae4d84681f524348bea9a56ae1d
[PATCH] acpi_shutdown: Only prepare for power off on power_off

When acpi_sleep_prepare was moved into a shutdown method we
started calling it for all shutdowns.

It appears this triggers some systems to power off on reboot.

Avoid this by only calling acpi_sleep_prepare if we are going to power
off the system.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/acpi/sleep/poweroff.c