x86: Merge early_reserve_initrd for 32bit and 64bit
authorYinghai Lu <yinghai@kernel.org>
Thu, 24 Jan 2013 20:19:55 +0000 (12:19 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 29 Jan 2013 23:20:41 +0000 (15:20 -0800)
commit1b8c78be01203e1c95ec5dfef6db307796fe0bc7
tree033de5c16064fc080a3eb7c792fb61e193d64058
parent100542306f644fc580857a8ca4896fb12b794d41
x86: Merge early_reserve_initrd for 32bit and 64bit

They are the same, could move them out from head32/64.c to setup.c.

We are using memblock, and it could handle overlapping properly, so
we don't need to reserve some at first to hold the location, and just
need to make sure we reserve them before we are using memblock to find
free mem to use.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1359058816-7615-15-git-send-email-yinghai@kernel.org
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/head32.c
arch/x86/kernel/head64.c
arch/x86/kernel/setup.c