x86: Add get_ramdisk_image/size()
authorYinghai Lu <yinghai@kernel.org>
Thu, 24 Jan 2013 20:19:56 +0000 (12:19 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 29 Jan 2013 23:21:05 +0000 (15:21 -0800)
commita8a51a88d5152aa40e5e07dcdd939c7fafc42224
tree316c1328f4e7aefd4c232c0d84b1346085278743
parent1b8c78be01203e1c95ec5dfef6db307796fe0bc7
x86: Add get_ramdisk_image/size()

There are several places to find ramdisk information early for reserving
and relocating.

Use accessor functions to make code more readable and consistent.

Later will add ext_ramdisk_image/size in those functions to support
loading ramdisk above 4g.

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