diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2012-01-29 14:38:41 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-01-29 14:38:41 -0500 |
commit | e470d06655e00749f6f9372e4fa4f20cea7ed7c5 (patch) | |
tree | 63e56f01b27ee9693bfb9d9127e4763ba0937057 /include/linux/pm.h | |
parent | cf579dfb82550e34de7ccf3ef090d8b834ccd3a9 (diff) |
PM / Sleep: Introduce generic callbacks for new device PM phases
Introduce generic subsystem callbacks for the new phases of device
suspend/resume during system power transitions: "late suspend",
"early resume", "late freeze", "early thaw", "late poweroff",
"early restore".
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'include/linux/pm.h')
-rw-r--r-- | include/linux/pm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h index c68e1f22ac95..73c610573a74 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h | |||
@@ -632,17 +632,23 @@ extern void __suspend_report_result(const char *function, void *fn, int ret); | |||
632 | extern int device_pm_wait_for_dev(struct device *sub, struct device *dev); | 632 | extern int device_pm_wait_for_dev(struct device *sub, struct device *dev); |
633 | 633 | ||
634 | extern int pm_generic_prepare(struct device *dev); | 634 | extern int pm_generic_prepare(struct device *dev); |
635 | extern int pm_generic_suspend_late(struct device *dev); | ||
635 | extern int pm_generic_suspend_noirq(struct device *dev); | 636 | extern int pm_generic_suspend_noirq(struct device *dev); |
636 | extern int pm_generic_suspend(struct device *dev); | 637 | extern int pm_generic_suspend(struct device *dev); |
638 | extern int pm_generic_resume_early(struct device *dev); | ||
637 | extern int pm_generic_resume_noirq(struct device *dev); | 639 | extern int pm_generic_resume_noirq(struct device *dev); |
638 | extern int pm_generic_resume(struct device *dev); | 640 | extern int pm_generic_resume(struct device *dev); |
639 | extern int pm_generic_freeze_noirq(struct device *dev); | 641 | extern int pm_generic_freeze_noirq(struct device *dev); |
642 | extern int pm_generic_freeze_late(struct device *dev); | ||
640 | extern int pm_generic_freeze(struct device *dev); | 643 | extern int pm_generic_freeze(struct device *dev); |
641 | extern int pm_generic_thaw_noirq(struct device *dev); | 644 | extern int pm_generic_thaw_noirq(struct device *dev); |
645 | extern int pm_generic_thaw_early(struct device *dev); | ||
642 | extern int pm_generic_thaw(struct device *dev); | 646 | extern int pm_generic_thaw(struct device *dev); |
643 | extern int pm_generic_restore_noirq(struct device *dev); | 647 | extern int pm_generic_restore_noirq(struct device *dev); |
648 | extern int pm_generic_restore_early(struct device *dev); | ||
644 | extern int pm_generic_restore(struct device *dev); | 649 | extern int pm_generic_restore(struct device *dev); |
645 | extern int pm_generic_poweroff_noirq(struct device *dev); | 650 | extern int pm_generic_poweroff_noirq(struct device *dev); |
651 | extern int pm_generic_poweroff_late(struct device *dev); | ||
646 | extern int pm_generic_poweroff(struct device *dev); | 652 | extern int pm_generic_poweroff(struct device *dev); |
647 | extern void pm_generic_complete(struct device *dev); | 653 | extern void pm_generic_complete(struct device *dev); |
648 | 654 | ||