[PATCH] Make swsusp avoid memory holes and reserved memory regions on x86_64
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 26 Sep 2006 06:32:46 +0000 (23:32 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:58 +0000 (08:48 -0700)
commite8eff5ac294e12531c4195e0c15a222d3c9015e5
treed63a3f26e506c3468e071377fec7aa9944f24764
parentfb13a28b0f5ada60861868c4fa48a12bd0cb8dea
[PATCH] Make swsusp avoid memory holes and reserved memory regions on x86_64

On x86_64 machines with more than 2 GB of RAM there are large memory gaps
(with no corresponding kernel virtual addresses) and reserved memory
regions between areas of usable physical RAM.  Moreover, if CONFIG_FLATMEM
is set, they appear within the normal zone.  swsusp should not try to save
them, so the corresponding page structs have to be marked as 'nosave'.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Mel Gorman <mel@csn.ul.ie>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/e820.c
arch/x86_64/kernel/setup.c
include/asm-x86_64/e820.h