diff options
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r-- | kernel/power/power.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h index 6e9e2acc34f8..bfe999f7b272 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h | |||
@@ -81,16 +81,6 @@ struct snapshot_handle { | |||
81 | unsigned int prev; /* number of the block of PAGE_SIZE bytes that | 81 | unsigned int prev; /* number of the block of PAGE_SIZE bytes that |
82 | * was the current one previously | 82 | * was the current one previously |
83 | */ | 83 | */ |
84 | struct pbe *pbe; /* PBE that corresponds to 'buffer' */ | ||
85 | struct pbe *last_pbe; /* When the image is restored (eg. read | ||
86 | * from disk) we can store some image | ||
87 | * data directly in the page frames | ||
88 | * in which they were before suspend. | ||
89 | * In such a case the PBEs that | ||
90 | * correspond to them will be unused. | ||
91 | * This is the last PBE, so far, that | ||
92 | * does not correspond to such data. | ||
93 | */ | ||
94 | void *buffer; /* address of the block to read from | 84 | void *buffer; /* address of the block to read from |
95 | * or write to | 85 | * or write to |
96 | */ | 86 | */ |
@@ -113,6 +103,7 @@ extern unsigned int snapshot_additional_pages(struct zone *zone); | |||
113 | extern int snapshot_read_next(struct snapshot_handle *handle, size_t count); | 103 | extern int snapshot_read_next(struct snapshot_handle *handle, size_t count); |
114 | extern int snapshot_write_next(struct snapshot_handle *handle, size_t count); | 104 | extern int snapshot_write_next(struct snapshot_handle *handle, size_t count); |
115 | extern int snapshot_image_loaded(struct snapshot_handle *handle); | 105 | extern int snapshot_image_loaded(struct snapshot_handle *handle); |
106 | extern void snapshot_free_unused_memory(struct snapshot_handle *handle); | ||
116 | 107 | ||
117 | #define SNAPSHOT_IOC_MAGIC '3' | 108 | #define SNAPSHOT_IOC_MAGIC '3' |
118 | #define SNAPSHOT_FREEZE _IO(SNAPSHOT_IOC_MAGIC, 1) | 109 | #define SNAPSHOT_FREEZE _IO(SNAPSHOT_IOC_MAGIC, 1) |