x86, mm: Split out split_mem_range from init_memory_mapping
authorYinghai Lu <yinghai@kernel.org>
Sat, 17 Nov 2012 03:38:39 +0000 (19:38 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Sat, 17 Nov 2012 19:59:01 +0000 (11:59 -0800)
commit4e33e06555329e93523b3d2590b9210bf84120a3
tree17ac501de467cb9621c1d8ee00375ba851e59a7e
parentfa62aafea9e415cd1efd8c4054106112fe809f19
x86, mm: Split out split_mem_range from init_memory_mapping

So make init_memory_mapping smaller and readable.

-v2: use 0 instead of nr_range as input parameter found by Yasuaki Ishimatsu.

Suggested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1353123563-3103-3-git-send-email-yinghai@kernel.org
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/mm/init.c