|
@@ -1651,7 +1651,7 @@ unsigned long snapshot_get_image_size(void)
|
|
|
static int init_header(struct swsusp_info *info)
|
|
|
{
|
|
|
memset(info, 0, sizeof(struct swsusp_info));
|
|
|
- info->num_physpages = num_physpages;
|
|
|
+ info->num_physpages = get_num_physpages();
|
|
|
info->image_pages = nr_copy_pages;
|
|
|
info->pages = snapshot_get_image_size();
|
|
|
info->size = info->pages;
|
|
@@ -1795,7 +1795,7 @@ static int check_header(struct swsusp_info *info)
|
|
|
char *reason;
|
|
|
|
|
|
reason = check_image_kernel(info);
|
|
|
- if (!reason && info->num_physpages != num_physpages)
|
|
|
+ if (!reason && info->num_physpages != get_num_physpages())
|
|
|
reason = "memory size";
|
|
|
if (reason) {
|
|
|
printk(KERN_ERR "PM: Image mismatch: %s\n", reason);
|