diff options
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r-- | kernel/power/power.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h index 70c378b3f85a..eab3603b7caf 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h | |||
@@ -27,7 +27,7 @@ struct swsusp_info { | |||
27 | 27 | ||
28 | /* kernel/power/disk.c */ | 28 | /* kernel/power/disk.c */ |
29 | extern int hibernation_snapshot(int platform_mode); | 29 | extern int hibernation_snapshot(int platform_mode); |
30 | extern int hibernation_restore(void); | 30 | extern int hibernation_restore(int platform_mode); |
31 | extern int hibernation_platform_enter(void); | 31 | extern int hibernation_platform_enter(void); |
32 | #endif | 32 | #endif |
33 | 33 | ||
@@ -155,13 +155,20 @@ extern sector_t alloc_swapdev_block(int swap); | |||
155 | extern void free_all_swap_pages(int swap); | 155 | extern void free_all_swap_pages(int swap); |
156 | extern int swsusp_swap_in_use(void); | 156 | extern int swsusp_swap_in_use(void); |
157 | 157 | ||
158 | /* | ||
159 | * Flags that can be passed from the hibernatig hernel to the "boot" kernel in | ||
160 | * the image header. | ||
161 | */ | ||
162 | #define SF_PLATFORM_MODE 1 | ||
163 | |||
164 | /* kernel/power/disk.c */ | ||
158 | extern int swsusp_check(void); | 165 | extern int swsusp_check(void); |
159 | extern int swsusp_shrink_memory(void); | 166 | extern int swsusp_shrink_memory(void); |
160 | extern void swsusp_free(void); | 167 | extern void swsusp_free(void); |
161 | extern int swsusp_suspend(void); | 168 | extern int swsusp_suspend(void); |
162 | extern int swsusp_resume(void); | 169 | extern int swsusp_resume(void); |
163 | extern int swsusp_read(void); | 170 | extern int swsusp_read(unsigned int *flags_p); |
164 | extern int swsusp_write(void); | 171 | extern int swsusp_write(unsigned int flags); |
165 | extern void swsusp_close(void); | 172 | extern void swsusp_close(void); |
166 | extern int suspend_enter(suspend_state_t state); | 173 | extern int suspend_enter(suspend_state_t state); |
167 | 174 | ||