]> err.no Git - linux-2.6/commit
PM: Introduce pm_power_off_prepare
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 19 Jul 2007 08:47:40 +0000 (01:47 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 19 Jul 2007 17:04:42 +0000 (10:04 -0700)
commitbd804eba1c8597cbb7cd5a5f9fe886aae16a079a
tree082f289809f92db6d23a13cd8fbbb82da125fcda
parentd7372cdf6938ccea23ec9fc68970702fed9ec3c8
PM: Introduce pm_power_off_prepare

Introduce the pm_power_off_prepare() callback that can be registered by the
interested platforms in analogy with pm_idle() and pm_power_off(), used for
preparing the system to power off (needed by ACPI).

This allows us to drop acpi_sysclass and device_acpi that are only defined in
order to register the ACPI power off preparation callback, which is needed by
pm_power_off() registered in a much different way.

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>
drivers/acpi/sleep/poweroff.c
include/linux/pm.h
kernel/sys.c