Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35691
b: refs/heads/master
c: 940864d
h: refs/heads/master
i:
  35689: 027e526
  35687: b8855f6
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Sep 26, 2006
1 parent d84edb4 commit a77f4af
Show file tree
Hide file tree
Showing 6 changed files with 187 additions and 256 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b788db79896ef2a5817b9395ad63573b254a6d93
refs/heads/master: 940864ddabdb180e02041c4dcd46ba6f9eee732f
9 changes: 0 additions & 9 deletions trunk/include/linux/suspend.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ struct pbe {
struct pbe *next;
};

#define for_each_pbe(pbe, pblist) \
for (pbe = pblist ; pbe ; pbe = pbe->next)

#define PBES_PER_PAGE (PAGE_SIZE/sizeof(struct pbe))
#define PB_PAGE_SKIP (PBES_PER_PAGE-1)

#define for_each_pb_page(pbe, pblist) \
for (pbe = pblist ; pbe ; pbe = (pbe+PB_PAGE_SKIP)->next)

/* mm/page_alloc.c */
extern void drain_local_pages(void);
extern void mark_free_pages(struct zone *zone);
Expand Down
11 changes: 1 addition & 10 deletions trunk/kernel/power/power.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,6 @@ struct snapshot_handle {
unsigned int prev; /* number of the block of PAGE_SIZE bytes that
* was the current one previously
*/
struct pbe *pbe; /* PBE that corresponds to 'buffer' */
struct pbe *last_pbe; /* When the image is restored (eg. read
* from disk) we can store some image
* data directly in the page frames
* in which they were before suspend.
* In such a case the PBEs that
* correspond to them will be unused.
* This is the last PBE, so far, that
* does not correspond to such data.
*/
void *buffer; /* address of the block to read from
* or write to
*/
Expand All @@ -113,6 +103,7 @@ extern unsigned int snapshot_additional_pages(struct zone *zone);
extern int snapshot_read_next(struct snapshot_handle *handle, size_t count);
extern int snapshot_write_next(struct snapshot_handle *handle, size_t count);
extern int snapshot_image_loaded(struct snapshot_handle *handle);
extern void snapshot_free_unused_memory(struct snapshot_handle *handle);

#define SNAPSHOT_IOC_MAGIC '3'
#define SNAPSHOT_FREEZE _IO(SNAPSHOT_IOC_MAGIC, 1)
Expand Down
Loading

0 comments on commit a77f4af

Please sign in to comment.