Merge tag 'pm-fixes-for-3.3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Power management fixes for 3.3 Two fixes for regressions introduced during the merge window, one fix for a long-standing obscure issue in the computation of hibernate image size and two small PM documentation fixes. * tag 'pm-fixes-for-3.3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: PM / Sleep: Fix read_unlock_usermodehelper() call. PM / Hibernate: Rewrite unlock_system_sleep() to fix s2disk regression PM / Hibernate: Correct additional pages number calculation PM / Documentation: Fix minor issue in freezing_of_tasks.txt PM / Documentation: Fix spelling mistake in basic-pm-debugging.txt
This commit is contained in:
@ -812,7 +812,8 @@ unsigned int snapshot_additional_pages(struct zone *zone)
|
||||
unsigned int res;
|
||||
|
||||
res = DIV_ROUND_UP(zone->spanned_pages, BM_BITS_PER_BLOCK);
|
||||
res += DIV_ROUND_UP(res * sizeof(struct bm_block), PAGE_SIZE);
|
||||
res += DIV_ROUND_UP(res * sizeof(struct bm_block),
|
||||
LINKED_PAGE_DATA_SIZE);
|
||||
return 2 * res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user