diff options
Diffstat (limited to 'include/linux/suspend.h')
-rw-r--r-- | include/linux/suspend.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/suspend.h b/include/linux/suspend.h index 9d2aa1a12aa0..1f2f7ba9e709 100644 --- a/include/linux/suspend.h +++ b/include/linux/suspend.h | |||
@@ -34,13 +34,22 @@ static inline void pm_restore_console(void) {} | |||
34 | 34 | ||
35 | #if defined(CONFIG_PM) && defined(CONFIG_SOFTWARE_SUSPEND) | 35 | #if defined(CONFIG_PM) && defined(CONFIG_SOFTWARE_SUSPEND) |
36 | /* kernel/power/snapshot.c */ | 36 | /* kernel/power/snapshot.c */ |
37 | extern void __init register_nosave_region(unsigned long, unsigned long); | 37 | extern void __register_nosave_region(unsigned long b, unsigned long e, int km); |
38 | static inline void register_nosave_region(unsigned long b, unsigned long e) | ||
39 | { | ||
40 | __register_nosave_region(b, e, 0); | ||
41 | } | ||
42 | static inline void register_nosave_region_late(unsigned long b, unsigned long e) | ||
43 | { | ||
44 | __register_nosave_region(b, e, 1); | ||
45 | } | ||
38 | extern int swsusp_page_is_forbidden(struct page *); | 46 | extern int swsusp_page_is_forbidden(struct page *); |
39 | extern void swsusp_set_page_free(struct page *); | 47 | extern void swsusp_set_page_free(struct page *); |
40 | extern void swsusp_unset_page_free(struct page *); | 48 | extern void swsusp_unset_page_free(struct page *); |
41 | extern unsigned long get_safe_page(gfp_t gfp_mask); | 49 | extern unsigned long get_safe_page(gfp_t gfp_mask); |
42 | #else | 50 | #else |
43 | static inline void register_nosave_region(unsigned long b, unsigned long e) {} | 51 | static inline void register_nosave_region(unsigned long b, unsigned long e) {} |
52 | static inline void register_nosave_region_late(unsigned long b, unsigned long e) {} | ||
44 | static inline int swsusp_page_is_forbidden(struct page *p) { return 0; } | 53 | static inline int swsusp_page_is_forbidden(struct page *p) { return 0; } |
45 | static inline void swsusp_set_page_free(struct page *p) {} | 54 | static inline void swsusp_set_page_free(struct page *p) {} |
46 | static inline void swsusp_unset_page_free(struct page *p) {} | 55 | static inline void swsusp_unset_page_free(struct page *p) {} |