PM / ACPI: Remove references to pm_flags from bus.c
[pandora-kernel.git] / kernel / power / main.c
index 7018530..b5405af 100644 (file)
 
 DEFINE_MUTEX(pm_mutex);
 
+#ifdef CONFIG_PM_SLEEP
+
 unsigned int pm_flags;
 EXPORT_SYMBOL(pm_flags);
 
-#ifdef CONFIG_PM_SLEEP
+bool pm_apm_enabled(void)
+{
+       return !!(pm_flags & PM_APM);
+}
+
+void pm_set_acpi_flag(void)
+{
+       pm_flags |= PM_ACPI;
+}
 
 /* Routines for PM-transition notifications */