aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2012-01-29 14:38:41 -0500
committerRafael J. Wysocki <rjw@sisk.pl>2012-01-29 14:38:41 -0500
commite470d06655e00749f6f9372e4fa4f20cea7ed7c5 (patch)
tree63e56f01b27ee9693bfb9d9127e4763ba0937057 /include/linux/pm.h
parentcf579dfb82550e34de7ccf3ef090d8b834ccd3a9 (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.h6
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);
632extern int device_pm_wait_for_dev(struct device *sub, struct device *dev); 632extern int device_pm_wait_for_dev(struct device *sub, struct device *dev);
633 633
634extern int pm_generic_prepare(struct device *dev); 634extern int pm_generic_prepare(struct device *dev);
635extern int pm_generic_suspend_late(struct device *dev);
635extern int pm_generic_suspend_noirq(struct device *dev); 636extern int pm_generic_suspend_noirq(struct device *dev);
636extern int pm_generic_suspend(struct device *dev); 637extern int pm_generic_suspend(struct device *dev);
638extern int pm_generic_resume_early(struct device *dev);
637extern int pm_generic_resume_noirq(struct device *dev); 639extern int pm_generic_resume_noirq(struct device *dev);
638extern int pm_generic_resume(struct device *dev); 640extern int pm_generic_resume(struct device *dev);
639extern int pm_generic_freeze_noirq(struct device *dev); 641extern int pm_generic_freeze_noirq(struct device *dev);
642extern int pm_generic_freeze_late(struct device *dev);
640extern int pm_generic_freeze(struct device *dev); 643extern int pm_generic_freeze(struct device *dev);
641extern int pm_generic_thaw_noirq(struct device *dev); 644extern int pm_generic_thaw_noirq(struct device *dev);
645extern int pm_generic_thaw_early(struct device *dev);
642extern int pm_generic_thaw(struct device *dev); 646extern int pm_generic_thaw(struct device *dev);
643extern int pm_generic_restore_noirq(struct device *dev); 647extern int pm_generic_restore_noirq(struct device *dev);
648extern int pm_generic_restore_early(struct device *dev);
644extern int pm_generic_restore(struct device *dev); 649extern int pm_generic_restore(struct device *dev);
645extern int pm_generic_poweroff_noirq(struct device *dev); 650extern int pm_generic_poweroff_noirq(struct device *dev);
651extern int pm_generic_poweroff_late(struct device *dev);
646extern int pm_generic_poweroff(struct device *dev); 652extern int pm_generic_poweroff(struct device *dev);
647extern void pm_generic_complete(struct device *dev); 653extern void pm_generic_complete(struct device *dev);
648 654