diff options
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r-- | kernel/power/power.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h index 977877c6dcfc..acdc83b3d890 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h | |||
@@ -49,18 +49,26 @@ extern void thaw_processes(void); | |||
49 | extern int pm_prepare_console(void); | 49 | extern int pm_prepare_console(void); |
50 | extern void pm_restore_console(void); | 50 | extern void pm_restore_console(void); |
51 | 51 | ||
52 | |||
53 | /* References to section boundaries */ | 52 | /* References to section boundaries */ |
54 | extern const void __nosave_begin, __nosave_end; | 53 | extern const void __nosave_begin, __nosave_end; |
55 | 54 | ||
56 | extern unsigned int nr_copy_pages; | 55 | extern unsigned int nr_copy_pages; |
57 | extern suspend_pagedir_t *pagedir_nosave; | 56 | extern struct pbe *pagedir_nosave; |
58 | extern suspend_pagedir_t *pagedir_save; | 57 | |
58 | /* | ||
59 | * This compilation switch determines the way in which memory will be freed | ||
60 | * during suspend. If defined, only as much memory will be freed as needed | ||
61 | * to complete the suspend, which will make it go faster. Otherwise, the | ||
62 | * largest possible amount of memory will be freed. | ||
63 | */ | ||
64 | #define FAST_FREE 1 | ||
59 | 65 | ||
60 | extern asmlinkage int swsusp_arch_suspend(void); | 66 | extern asmlinkage int swsusp_arch_suspend(void); |
61 | extern asmlinkage int swsusp_arch_resume(void); | 67 | extern asmlinkage int swsusp_arch_resume(void); |
62 | 68 | ||
69 | extern unsigned int count_data_pages(void); | ||
63 | extern void free_pagedir(struct pbe *pblist); | 70 | extern void free_pagedir(struct pbe *pblist); |
71 | extern void release_eaten_pages(void); | ||
64 | extern struct pbe *alloc_pagedir(unsigned nr_pages, gfp_t gfp_mask, int safe_needed); | 72 | extern struct pbe *alloc_pagedir(unsigned nr_pages, gfp_t gfp_mask, int safe_needed); |
65 | extern void swsusp_free(void); | 73 | extern void swsusp_free(void); |
66 | extern int alloc_data_pages(struct pbe *pblist, gfp_t gfp_mask, int safe_needed); | 74 | extern int alloc_data_pages(struct pbe *pblist, gfp_t gfp_mask, int safe_needed); |