aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/suspend.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/suspend.h')
-rw-r--r--include/linux/suspend.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/suspend.h b/include/linux/suspend.h
index 0044483dd477..9fd2b9acf7d9 100644
--- a/include/linux/suspend.h
+++ b/include/linux/suspend.h
@@ -127,7 +127,7 @@ extern void drain_local_pages(void);
127extern void mark_free_pages(struct zone *zone); 127extern void mark_free_pages(struct zone *zone);
128 128
129/** 129/**
130 * struct hibernation_ops - hibernation platform support 130 * struct platform_hibernation_ops - hibernation platform support
131 * 131 *
132 * The methods in this structure allow a platform to override the default 132 * The methods in this structure allow a platform to override the default
133 * mechanism of shutting down the machine during a hibernation transition. 133 * mechanism of shutting down the machine during a hibernation transition.
@@ -164,7 +164,7 @@ extern void mark_free_pages(struct zone *zone);
164 * Called right after the nonboot CPUs have been enabled and before 164 * Called right after the nonboot CPUs have been enabled and before
165 * thawing devices (runs with IRQs on). 165 * thawing devices (runs with IRQs on).
166 */ 166 */
167struct hibernation_ops { 167struct platform_hibernation_ops {
168 int (*start)(void); 168 int (*start)(void);
169 int (*pre_snapshot)(void); 169 int (*pre_snapshot)(void);
170 void (*finish)(void); 170 void (*finish)(void);
@@ -190,14 +190,14 @@ extern void swsusp_set_page_free(struct page *);
190extern void swsusp_unset_page_free(struct page *); 190extern void swsusp_unset_page_free(struct page *);
191extern unsigned long get_safe_page(gfp_t gfp_mask); 191extern unsigned long get_safe_page(gfp_t gfp_mask);
192 192
193extern void hibernation_set_ops(struct hibernation_ops *ops); 193extern void hibernation_set_ops(struct platform_hibernation_ops *ops);
194extern int hibernate(void); 194extern int hibernate(void);
195#else /* CONFIG_HIBERNATION */ 195#else /* CONFIG_HIBERNATION */
196static inline int swsusp_page_is_forbidden(struct page *p) { return 0; } 196static inline int swsusp_page_is_forbidden(struct page *p) { return 0; }
197static inline void swsusp_set_page_free(struct page *p) {} 197static inline void swsusp_set_page_free(struct page *p) {}
198static inline void swsusp_unset_page_free(struct page *p) {} 198static inline void swsusp_unset_page_free(struct page *p) {}
199 199
200static inline void hibernation_set_ops(struct hibernation_ops *ops) {} 200static inline void hibernation_set_ops(struct platform_hibernation_ops *ops) {}
201static inline int hibernate(void) { return -ENOSYS; } 201static inline int hibernate(void) { return -ENOSYS; }
202#endif /* CONFIG_HIBERNATION */ 202#endif /* CONFIG_HIBERNATION */
203 203