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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/suspend.h b/include/linux/suspend.h
index 5a89e3612875..5e364db8a56a 100644
--- a/include/linux/suspend.h
+++ b/include/linux/suspend.h
@@ -272,6 +272,9 @@ extern int unregister_pm_notifier(struct notifier_block *nb);
272 register_pm_notifier(&fn##_nb); \ 272 register_pm_notifier(&fn##_nb); \
273} 273}
274 274
275extern bool pm_apm_enabled(void);
276extern void pm_set_acpi_flag(void);
277
275/* drivers/base/power/wakeup.c */ 278/* drivers/base/power/wakeup.c */
276extern bool events_check_enabled; 279extern bool events_check_enabled;
277 280
@@ -292,6 +295,9 @@ static inline int unregister_pm_notifier(struct notifier_block *nb)
292 295
293#define pm_notifier(fn, pri) do { (void)(fn); } while (0) 296#define pm_notifier(fn, pri) do { (void)(fn); } while (0)
294 297
298static inline bool pm_apm_enabled(void) { return false; }
299static inline void pm_set_acpi_flag(void) {}
300
295static inline bool pm_wakeup_pending(void) { return false; } 301static inline bool pm_wakeup_pending(void) { return false; }
296#endif /* !CONFIG_PM_SLEEP */ 302#endif /* !CONFIG_PM_SLEEP */
297 303