[S390] Fix range for add_active_range() in setup_memory()
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Fri, 14 Nov 2008 17:18:00 +0000 (18:18 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 14 Nov 2008 17:18:51 +0000 (18:18 +0100)
commitfb2e7c5e33b341699f139b2ed972dca0a463a670
tree84363091311ffd8755a921ce3b34487c8ef3d8cc
parent58e20d8d344b0ee083febb18c2b021d2427e56ca
[S390] Fix range for add_active_range() in setup_memory()

add_active_range() expects start_pfn + size as end_pfn value, i.e. not
the pfn of the last page frame but the one behind that.
We used the pfn of the last page frame so far, which can lead to a
BUG_ON in move_freepages(), when the kernelcore parameter is specified
(page_zone(start_page) != page_zone(end_page)).

Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/setup.c