]> git.karo-electronics.de Git - karo-tx-linux.git/commit
page_alloc: make movablemem_map have higher priority
authorTang Chen <tangchen@cn.fujitsu.com>
Wed, 20 Feb 2013 02:14:27 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:37 +0000 (16:52 +1100)
commit2ffd556e826d15ce3862525fa8925f6d0f55ebbd
tree8c372cdea7a968488a98fba47cc8fd3cda640db7
parentd22dfc50c62b830570dd6aed7136f3a5f7cdbc60
page_alloc: make movablemem_map have higher priority

If kernelcore or movablecore is specified at the same time with
movablemem_map, movablemem_map will have higher priority to be
satisfied.  This patch will make find_zone_movable_pfns_for_nodes()
calculate zone_movable_pfn[] with the limit from zone_movable_limit[].

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
Reviewed-by: Wen Congyang <wency@cn.fujitsu.com>
Cc: Wu Jianguo <wujianguo@huawei.com>
Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Tested-by: Lin Feng <linfeng@cn.fujitsu.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c