summaryrefslogtreecommitdiffstats
path: root/include/linux/suspend.h
diff options
context:
space:
mode:
authorAmerigo Wang <amwang@redhat.com>2011-07-25 17:13:11 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-25 20:57:15 -0700
commit35eb6db11ed9cbf9702ec90a28779a51fe4a21a9 (patch)
tree4013d595b8a370ed2b722f8a260f48506aa9109b /include/linux/suspend.h
parentc5f41752fd37979dbaec61dc59c7ece0606ddf7e (diff)
downloadop-kernel-dev-35eb6db11ed9cbf9702ec90a28779a51fe4a21a9.zip
op-kernel-dev-35eb6db11ed9cbf9702ec90a28779a51fe4a21a9.tar.gz
notifiers: pm: move pm notifiers into suspend.h
It is not necessary to share the same notifier.h. Signed-off-by: WANG Cong <amwang@redhat.com> Cc: David Miller <davem@davemloft.net> Acked-by: "Rafael J. Wysocki" <rjw@sisk.pl> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/suspend.h')
-rw-r--r--include/linux/suspend.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/suspend.h b/include/linux/suspend.h
index e1e3742..6bbcef2 100644
--- a/include/linux/suspend.h
+++ b/include/linux/suspend.h
@@ -268,6 +268,14 @@ static inline int hibernate(void) { return -ENOSYS; }
static inline bool system_entering_hibernation(void) { return false; }
#endif /* CONFIG_HIBERNATION */
+/* Hibernation and suspend events */
+#define PM_HIBERNATION_PREPARE 0x0001 /* Going to hibernate */
+#define PM_POST_HIBERNATION 0x0002 /* Hibernation finished */
+#define PM_SUSPEND_PREPARE 0x0003 /* Going to suspend the system */
+#define PM_POST_SUSPEND 0x0004 /* Suspend finished */
+#define PM_RESTORE_PREPARE 0x0005 /* Going to restore a saved image */
+#define PM_POST_RESTORE 0x0006 /* Restore failed */
+
#ifdef CONFIG_PM_SLEEP
void save_processor_state(void);
void restore_processor_state(void);
OpenPOWER on IntegriCloud