diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2007-07-19 01:47:40 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 10:04:42 -0700 |
commit | bd804eba1c8597cbb7cd5a5f9fe886aae16a079a (patch) | |
tree | 082f289809f92db6d23a13cd8fbbb82da125fcda /include/linux/pm.h | |
parent | d7372cdf6938ccea23ec9fc68970702fed9ec3c8 (diff) | |
download | linux-3.10-bd804eba1c8597cbb7cd5a5f9fe886aae16a079a.tar.gz linux-3.10-bd804eba1c8597cbb7cd5a5f9fe886aae16a079a.tar.bz2 linux-3.10-bd804eba1c8597cbb7cd5a5f9fe886aae16a079a.zip |
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>
Diffstat (limited to 'include/linux/pm.h')
-rw-r--r-- | include/linux/pm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h index 2735b7cadd2..ad3cc2eb0d3 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h @@ -101,6 +101,7 @@ struct pm_dev */ extern void (*pm_idle)(void); extern void (*pm_power_off)(void); +extern void (*pm_power_off_prepare)(void); typedef int __bitwise suspend_state_t; |