|
@@ -249,6 +249,8 @@ extern void hibernation_set_ops(const struct platform_hibernation_ops *ops);
|
|
extern int hibernate(void);
|
|
extern int hibernate(void);
|
|
extern bool system_entering_hibernation(void);
|
|
extern bool system_entering_hibernation(void);
|
|
#else /* CONFIG_HIBERNATION */
|
|
#else /* CONFIG_HIBERNATION */
|
|
|
|
+static inline void register_nosave_region(unsigned long b, unsigned long e) {}
|
|
|
|
+static inline void register_nosave_region_late(unsigned long b, unsigned long e) {}
|
|
static inline int swsusp_page_is_forbidden(struct page *p) { return 0; }
|
|
static inline int swsusp_page_is_forbidden(struct page *p) { return 0; }
|
|
static inline void swsusp_set_page_free(struct page *p) {}
|
|
static inline void swsusp_set_page_free(struct page *p) {}
|
|
static inline void swsusp_unset_page_free(struct page *p) {}
|
|
static inline void swsusp_unset_page_free(struct page *p) {}
|
|
@@ -297,14 +299,7 @@ static inline bool pm_wakeup_pending(void) { return false; }
|
|
|
|
|
|
extern struct mutex pm_mutex;
|
|
extern struct mutex pm_mutex;
|
|
|
|
|
|
-#ifndef CONFIG_HIBERNATION
|
|
|
|
-static inline void register_nosave_region(unsigned long b, unsigned long e)
|
|
|
|
-{
|
|
|
|
-}
|
|
|
|
-static inline void register_nosave_region_late(unsigned long b, unsigned long e)
|
|
|
|
-{
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
|
|
+#ifndef CONFIG_HIBERNATE_CALLBACKS
|
|
static inline void lock_system_sleep(void) {}
|
|
static inline void lock_system_sleep(void) {}
|
|
static inline void unlock_system_sleep(void) {}
|
|
static inline void unlock_system_sleep(void) {}
|
|
|
|
|