diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-07-19 00:28:40 (GMT) |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-07-19 00:43:40 (GMT) |
commit | e5849e71adcbb774ce40f09c1bcb48acca3b6da7 (patch) | |
tree | b1cbe564191ac7160bdb4c2248239d48884cb731 /arch/x86/kernel/e820.c | |
parent | 08ad8afaa0f7343e9c64eec5dbbb178e390e03a2 (diff) | |
download | linux-e5849e71adcbb774ce40f09c1bcb48acca3b6da7.tar.xz |
x86: remove arch_get_ram_range
no user now
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/e820.c')
-rw-r--r-- | arch/x86/kernel/e820.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index 28c2918..df1b32f 100644 --- a/arch/x86/kernel/e820.c +++ b/arch/x86/kernel/e820.c @@ -1367,24 +1367,3 @@ void __init setup_memory_map(void) printk(KERN_INFO "BIOS-provided physical RAM map:\n"); e820_print_map(who); } - -#ifdef CONFIG_X86_64 -int __init arch_get_ram_range(int slot, u64 *addr, u64 *size) -{ - int i; - - if (slot < 0 || slot >= e820.nr_map) - return -1; - for (i = slot; i < e820.nr_map; i++) { - if (e820.map[i].type != E820_RAM) - continue; - break; - } - if (i == e820.nr_map || e820.map[i].addr > (max_pfn << PAGE_SHIFT)) - return -1; - *addr = e820.map[i].addr; - *size = min_t(u64, e820.map[i].size + e820.map[i].addr, - max_pfn << PAGE_SHIFT) - *addr; - return i + 1; -} -#endif |