diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-06-03 22:35:04 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-04 06:01:58 -0400 |
commit | 7b2a0a6c4866cac146dcb0433e6984eb19a81335 (patch) | |
tree | d498d35f1281894fddbf39dcfd5c8d848ab87bb9 /arch/x86/kernel/numaq_32.c | |
parent | ee0c80fadfa56bf4f9d90c1c023429a6bd8edd69 (diff) |
x86: make 32-bit use e820_register_active_regions()
this way 32-bit is more similar to 64-bit, and smarter e820 and numa.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/numaq_32.c')
-rw-r--r-- | arch/x86/kernel/numaq_32.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/numaq_32.c b/arch/x86/kernel/numaq_32.c index 922be66668b8..27b908254fb0 100644 --- a/arch/x86/kernel/numaq_32.c +++ b/arch/x86/kernel/numaq_32.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <asm/topology.h> | 32 | #include <asm/topology.h> |
33 | #include <asm/processor.h> | 33 | #include <asm/processor.h> |
34 | #include <asm/mpspec.h> | 34 | #include <asm/mpspec.h> |
35 | #include <asm/e820.h> | ||
35 | 36 | ||
36 | #define MB_TO_PAGES(addr) ((addr) << (20 - PAGE_SHIFT)) | 37 | #define MB_TO_PAGES(addr) ((addr) << (20 - PAGE_SHIFT)) |
37 | 38 | ||
@@ -61,6 +62,8 @@ static void __init smp_dump_qct(void) | |||
61 | node_end_pfn[node] = MB_TO_PAGES( | 62 | node_end_pfn[node] = MB_TO_PAGES( |
62 | eq->hi_shrd_mem_start + eq->hi_shrd_mem_size); | 63 | eq->hi_shrd_mem_start + eq->hi_shrd_mem_size); |
63 | 64 | ||
65 | e820_register_active_regions(node, node_start_pfn[node], | ||
66 | node_end_pfn[node]); | ||
64 | memory_present(node, | 67 | memory_present(node, |
65 | node_start_pfn[node], node_end_pfn[node]); | 68 | node_start_pfn[node], node_end_pfn[node]); |
66 | node_remap_size[node] = node_memmap_size_bytes(node, | 69 | node_remap_size[node] = node_memmap_size_bytes(node, |