diff options
Diffstat (limited to 'include/linux/suspend.h')
| -rw-r--r-- | include/linux/suspend.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/suspend.h b/include/linux/suspend.h index 5dc94e777fab..37c1c76fd547 100644 --- a/include/linux/suspend.h +++ b/include/linux/suspend.h | |||
| @@ -43,16 +43,20 @@ extern void mark_free_pages(struct zone *zone); | |||
| 43 | /* kernel/power/swsusp.c */ | 43 | /* kernel/power/swsusp.c */ |
| 44 | extern int software_suspend(void); | 44 | extern int software_suspend(void); |
| 45 | 45 | ||
| 46 | #if defined(CONFIG_VT) && defined(CONFIG_VT_CONSOLE) | ||
| 46 | extern int pm_prepare_console(void); | 47 | extern int pm_prepare_console(void); |
| 47 | extern void pm_restore_console(void); | 48 | extern void pm_restore_console(void); |
| 48 | 49 | #else | |
| 50 | static inline int pm_prepare_console(void) { return 0; } | ||
| 51 | static inline void pm_restore_console(void) {} | ||
| 52 | #endif /* defined(CONFIG_VT) && defined(CONFIG_VT_CONSOLE) */ | ||
| 49 | #else | 53 | #else |
| 50 | static inline int software_suspend(void) | 54 | static inline int software_suspend(void) |
| 51 | { | 55 | { |
| 52 | printk("Warning: fake suspend called\n"); | 56 | printk("Warning: fake suspend called\n"); |
| 53 | return -EPERM; | 57 | return -EPERM; |
| 54 | } | 58 | } |
| 55 | #endif | 59 | #endif /* CONFIG_PM */ |
| 56 | 60 | ||
| 57 | #ifdef CONFIG_SUSPEND_SMP | 61 | #ifdef CONFIG_SUSPEND_SMP |
| 58 | extern void disable_nonboot_cpus(void); | 62 | extern void disable_nonboot_cpus(void); |
