]> err.no Git - linux-2.6/commit
[PATCH] s390: fix memory holes and cleanup setup_arch
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Sun, 1 May 2005 15:58:57 +0000 (08:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 15:58:57 +0000 (08:58 -0700)
commitc9e3735359ac2d74ee61c6f1e5724f4a6db570bf
tree381204a24f4378d3c8d898f8e0210b1b97f5f248
parent4b7e0706620e3947dc1685dfdbc1413404afb545
[PATCH] s390: fix memory holes and cleanup setup_arch

The memory setup didn't take care of memory holes and this makes the memory
management think there would be more memory available than there is in
reality.  That causes the OOM killer to kill processes even if there is enough
memory left that can be written to the swap space.

The patch fixes this by using free_area_init_node with an array of memory
holes instead of free_area_init.  Further the patch cleans up the code in
setup.c by splitting setup_arch into smaller pieces.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/s390/kernel/setup.c
arch/s390/mm/init.c