]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - include/linux/suspend.h
ACPI / PM: Hold ACPI scan lock over the "freeze" sleep state
[mirror_ubuntu-zesty-kernel.git] / include / linux / suspend.h
index f73cabf59012f1ead45eee1eb7aa97600b1bb902..91d66fd8dce10fa66659ef017a0afa367d0ea572 100644 (file)
@@ -187,6 +187,11 @@ struct platform_suspend_ops {
        void (*recover)(void);
 };
 
+struct platform_freeze_ops {
+       int (*begin)(void);
+       void (*end)(void);
+};
+
 #ifdef CONFIG_SUSPEND
 /**
  * suspend_set_ops - set platform dependent suspend operations
@@ -194,6 +199,7 @@ struct platform_suspend_ops {
  */
 extern void suspend_set_ops(const struct platform_suspend_ops *ops);
 extern int suspend_valid_only_mem(suspend_state_t state);
+extern void freeze_set_ops(const struct platform_freeze_ops *ops);
 extern void freeze_wake(void);
 
 /**
@@ -220,6 +226,7 @@ extern int pm_suspend(suspend_state_t state);
 
 static inline void suspend_set_ops(const struct platform_suspend_ops *ops) {}
 static inline int pm_suspend(suspend_state_t state) { return -ENOSYS; }
+static inline void freeze_set_ops(const struct platform_freeze_ops *ops) {}
 static inline void freeze_wake(void) {}
 #endif /* !CONFIG_SUSPEND */