diff options
| author | Patrick Mochel <mochel@osdl.org> | 2003-08-04 03:35:30 -0700 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2003-08-04 03:35:30 -0700 |
| commit | 2e4208cd650e04a06eef8fa769892fc6964c9b37 (patch) | |
| tree | bc01fc72e916643bbe3584b43c95000cef56af1a /include/linux/suspend.h | |
| parent | 5847d6c19bbbf2aa5c67504729f9b84750e57fa3 (diff) | |
[power] Divorce suspend console code from swsusp.
- Create kernel/power/console.c
- Rename prepare_suspend_console() to pm_prepare_console() and
restore_console() to pm_restore_console().
- Add prototypes to include/linux/suspend.h.
- Make kernel/power/console.o dependent only on CONFIG_PM
- Simplify logic for SUSPEND_CONSOLE define
- Make software_resume() prepare console much earlier, so we can localize
the loglevel variables in console.c.
- Remove #ifdef CONFIG_VT from console.c, and just check for SUSPEND_CONSOLE.
(Perhaps we should make entire file dependent on CONFIG_VT_CONSOLE?)
- Add kernel/power/power.h to share things across local files.
Diffstat (limited to 'include/linux/suspend.h')
| -rw-r--r-- | include/linux/suspend.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/suspend.h b/include/linux/suspend.h index 864067f87aa8..03340682a466 100644 --- a/include/linux/suspend.h +++ b/include/linux/suspend.h @@ -85,6 +85,10 @@ static inline void software_suspend(void) extern void refrigerator(unsigned long); extern int freeze_processes(void); extern void thaw_processes(void); + +extern int pm_prepare_console(void); +extern void pm_restore_console(void); + #else static inline void refrigerator(unsigned long) { |
