* [PATCH] x86: remove arch_get_ram_range
@ 2008-07-19 0:28 Yinghai Lu
2008-07-19 0:44 ` H. Peter Anvin
0 siblings, 1 reply; 2+ messages in thread
From: Yinghai Lu @ 2008-07-19 0:28 UTC (permalink / raw)
To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin; +Cc: linux-kernel
no user now
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
---
arch/x86/kernel/e820.c | 21 ---------------------
1 file changed, 21 deletions(-)
Index: linux-2.6/arch/x86/kernel/e820.c
===================================================================
--- linux-2.6.orig/arch/x86/kernel/e820.c
+++ linux-2.6/arch/x86/kernel/e820.c
@@ -1368,24 +1368,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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] x86: remove arch_get_ram_range
2008-07-19 0:28 [PATCH] x86: remove arch_get_ram_range Yinghai Lu
@ 2008-07-19 0:44 ` H. Peter Anvin
0 siblings, 0 replies; 2+ messages in thread
From: H. Peter Anvin @ 2008-07-19 0:44 UTC (permalink / raw)
To: Yinghai Lu; +Cc: Ingo Molnar, Thomas Gleixner, linux-kernel
Yinghai Lu wrote:
> no user now
>
> Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Applied to tip:x86/cleanups; will push after compile test finishes.
-hpa
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-19 0:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-19 0:28 [PATCH] x86: remove arch_get_ram_range Yinghai Lu
2008-07-19 0:44 ` H. Peter Anvin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.