]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/suspend.h
[PATCH] sem2mutex: iprune
[linux-2.6-omap-h63xx.git] / include / linux / suspend.h
index 43bcd13eb1ecbda0047e5db52868589b06a22318..37c1c76fd5472f7aafdbee3a7f36e6806a7e3468 100644 (file)
@@ -42,13 +42,21 @@ extern void mark_free_pages(struct zone *zone);
 #ifdef CONFIG_PM
 /* kernel/power/swsusp.c */
 extern int software_suspend(void);
+
+#if defined(CONFIG_VT) && defined(CONFIG_VT_CONSOLE)
+extern int pm_prepare_console(void);
+extern void pm_restore_console(void);
+#else
+static inline int pm_prepare_console(void) { return 0; }
+static inline void pm_restore_console(void) {}
+#endif /* defined(CONFIG_VT) && defined(CONFIG_VT_CONSOLE) */
 #else
 static inline int software_suspend(void)
 {
        printk("Warning: fake suspend called\n");
        return -EPERM;
 }
-#endif
+#endif /* CONFIG_PM */
 
 #ifdef CONFIG_SUSPEND_SMP
 extern void disable_nonboot_cpus(void);