]> git.karo-electronics.de Git - karo-tx-linux.git/commit
page_alloc: add movable_memmap kernel parameter
authorTang Chen <tangchen@cn.fujitsu.com>
Thu, 7 Feb 2013 01:26:35 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:31 +0000 (16:46 +1100)
commit547ae6ac5d5b16f6a8161c441bcfcf885724c988
tree338571be8ed87bef12ec77fe773ea4aabf473e8a
parentb95009d171c033be6bcd6b9c981bef893cd463bb
page_alloc: add movable_memmap kernel parameter

Add functions to parse movablecore_map boot option.  Since the option
could be specified more then once, all the maps will be stored in the
global variable movablecore_map.map array.

And also, we keep the array in monotonic increasing order by start_pfn.
And merge all overlapped ranges.

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Reviewed-by: Wen Congyang <wency@cn.fujitsu.com>
Tested-by: Lin Feng <linfeng@cn.fujitsu.com>
Cc: Wu Jianguo <wujianguo@huawei.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>
Documentation/kernel-parameters.txt
include/linux/mm.h
mm/page_alloc.c