sparc64: Do not change num_physpages during initmem freeing
authorTkhai Kirill <tkhai@yandex.ru>
Tue, 19 Mar 2013 15:12:08 +0000 (15:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2013 18:06:54 +0000 (11:06 -0700)
commitce835e513a93a4dc0d7bf72fc205a0b815f305e3
tree91e4748196feac3604a9706d6eb566c224debd90
parentbdde6b3c8ba48fa5847b6d75f0541c8b8db9205c
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>
arch/sparc/mm/init_64.c