mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 22:10:24 +00:00
sparc64: Do not change num_physpages during initmem freeing
Common hibernation code looks at num_physpages during suspend and restore. Restore is able to be called from initcall, which is before initmem freeing. This case leads to restore fail. Signed-off-by: Kirill Tkhai <tkhai@yandex.ru> CC: David Miller <davem@davemloft.net> CC: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bdde6b3c8b
commit
ce835e513a
@ -2125,7 +2125,6 @@ void free_initmem(void)
|
||||
ClearPageReserved(p);
|
||||
init_page_count(p);
|
||||
__free_page(p);
|
||||
num_physpages++;
|
||||
totalram_pages++;
|
||||
}
|
||||
}
|
||||
@ -2142,7 +2141,6 @@ void free_initrd_mem(unsigned long start, unsigned long end)
|
||||
ClearPageReserved(p);
|
||||
init_page_count(p);
|
||||
__free_page(p);
|
||||
num_physpages++;
|
||||
totalram_pages++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user