core: Move early_res from arch/x86 to kernel/
authorYinghai Lu <yinghai@kernel.org>
Wed, 17 Feb 2010 02:40:35 +0000 (18:40 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 17 Feb 2010 05:43:39 +0000 (21:43 -0800)
commit580e0ad21d6d6f932461d24b47041e3dd499c23f
tree3476c71849c0f9aa54c160b9a994bf4d211bd697
parentdd645cee7b50b61cb2d05b59eb6027679c437af6
core: Move early_res from arch/x86 to kernel/

This makes the range reservation feature available to other
architectures.

-v2: add get_max_mapped, max_pfn_mapped only defined in x86...
     to fix PPC compiling
-v3: according to hpa, add CONFIG_HAVE_EARLY_RES
-v4: fix typo about EARLY_RES in config

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <4B7B5723.4070009@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/Kconfig
arch/x86/include/asm/e820.h
arch/x86/kernel/Makefile
arch/x86/kernel/e820.c
include/linux/early_res.h [moved from arch/x86/include/asm/early_res.h with 85% similarity]
kernel/Makefile
kernel/early_res.c [moved from arch/x86/kernel/early_res.c with 97% similarity]