Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29003
b: refs/heads/master
c: a938c35
h: refs/heads/master
i:
  29001: cf02846
  28999: 58d95e1
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Jun 23, 2006
1 parent 3656550 commit 49f252e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 3e3318dee0878d42ed62a19c292a2ac284135db3
refs/heads/master: a938c356d5b007fe6d28251c0ddbf6c11d0d92b5
4 changes: 3 additions & 1 deletion trunk/kernel/power/swsusp.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,10 @@ int swsusp_shrink_memory(void)
PAGES_FOR_IO;
tmp = size;
for_each_zone (zone)
if (!is_highmem(zone))
if (!is_highmem(zone) && populated_zone(zone)) {
tmp -= zone->free_pages;
tmp += zone->lowmem_reserve[ZONE_NORMAL];
}
if (tmp > 0) {
tmp = __shrink_memory(tmp);
if (!tmp)
Expand Down

0 comments on commit 49f252e

Please sign in to comment.