diff options
Diffstat (limited to 'kernel/power/main.c')
| -rw-r--r-- | kernel/power/main.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/kernel/power/main.c b/kernel/power/main.c index 701853042c28..b5405af48ddb 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c | |||
| @@ -17,10 +17,20 @@ | |||
| 17 | 17 | ||
| 18 | DEFINE_MUTEX(pm_mutex); | 18 | DEFINE_MUTEX(pm_mutex); |
| 19 | 19 | ||
| 20 | #ifdef CONFIG_PM_SLEEP | ||
| 21 | |||
| 20 | unsigned int pm_flags; | 22 | unsigned int pm_flags; |
| 21 | EXPORT_SYMBOL(pm_flags); | 23 | EXPORT_SYMBOL(pm_flags); |
| 22 | 24 | ||
| 23 | #ifdef CONFIG_PM_SLEEP | 25 | bool pm_apm_enabled(void) |
| 26 | { | ||
| 27 | return !!(pm_flags & PM_APM); | ||
| 28 | } | ||
| 29 | |||
| 30 | void pm_set_acpi_flag(void) | ||
| 31 | { | ||
| 32 | pm_flags |= PM_ACPI; | ||
| 33 | } | ||
| 24 | 34 | ||
| 25 | /* Routines for PM-transition notifications */ | 35 | /* Routines for PM-transition notifications */ |
| 26 | 36 | ||
