aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/power/power.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r--kernel/power/power.h13
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 */
29extern int hibernation_snapshot(int platform_mode); 29extern int hibernation_snapshot(int platform_mode);
30extern int hibernation_restore(void); 30extern int hibernation_restore(int platform_mode);
31extern int hibernation_platform_enter(void); 31extern int hibernation_platform_enter(void);
32#endif 32#endif
33 33
@@ -155,13 +155,20 @@ extern sector_t alloc_swapdev_block(int swap);
155extern void free_all_swap_pages(int swap); 155extern void free_all_swap_pages(int swap);
156extern int swsusp_swap_in_use(void); 156extern 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 */
158extern int swsusp_check(void); 165extern int swsusp_check(void);
159extern int swsusp_shrink_memory(void); 166extern int swsusp_shrink_memory(void);
160extern void swsusp_free(void); 167extern void swsusp_free(void);
161extern int swsusp_suspend(void); 168extern int swsusp_suspend(void);
162extern int swsusp_resume(void); 169extern int swsusp_resume(void);
163extern int swsusp_read(void); 170extern int swsusp_read(unsigned int *flags_p);
164extern int swsusp_write(void); 171extern int swsusp_write(unsigned int flags);
165extern void swsusp_close(void); 172extern void swsusp_close(void);
166extern int suspend_enter(suspend_state_t state); 173extern int suspend_enter(suspend_state_t state);
167 174