aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/pmu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pmu.h')
-rw-r--r--include/linux/pmu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/pmu.h b/include/linux/pmu.h
index b0952e532ed5..37ca57392add 100644
--- a/include/linux/pmu.h
+++ b/include/linux/pmu.h
@@ -225,4 +225,12 @@ extern unsigned int pmu_power_flags;
/* Backlight */
extern void pmu_backlight_init(void);
+/* some code needs to know if the PMU was suspended for hibernation */
+#ifdef CONFIG_PM
+extern int pmu_sys_suspended;
+#else
+/* if power management is not configured it can't be suspended */
+#define pmu_sys_suspended 0
+#endif
+
#endif /* __KERNEL__ */