]> git.baikalelectronics.ru Git - kernel.git/commit
Fix ThinkPad T42 poweroff failure introduced by by "PM: Introduce pm_power_off_prepare"
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 26 Jul 2007 14:29:55 +0000 (16:29 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 26 Jul 2007 19:13:06 +0000 (12:13 -0700)
commit6655de1ec3d12ba4ff5947a76a76c21b5f617b25
tree38f34ce39e1c93d6d54730ead4e414a5070e3b45
parent6e46ae8c80163c1d00ea78ce7d522ad252e37d1c
Fix ThinkPad T42 poweroff failure introduced by by "PM: Introduce pm_power_off_prepare"

Commit cd8feb7eee10f56d2c66e5ea9cab58841feec9f3 ("PM: Introduce
pm_power_off_prepare") caused problems in the poweroff path, as reported by
YOSHIFUJI Hideaki / 吉藤英明.

Generally, sysdev_shutdown() should be called after the ACPI preparation for
powering the system off.  To make it happen, we can separate sysdev_shutdown()
from device_shutdown() and call it directly wherever necessary.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Tested-by: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/base/power/shutdown.c
include/linux/device.h
kernel/power/disk.c
kernel/sys.c