aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/numa_64.c
diff options
context:
space:
mode:
authorYinghai Lu <Yinghai.Lu@Sun.COM>2008-01-30 07:34:12 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:34:12 -0500
commitafadcd788f37bfa62d92662e54a720c26c91becf (patch)
tree077515fe2b5a90351b035ad3769093f5280fc661 /arch/x86/mm/numa_64.c
parent9198715763e8d0fd7fb7578c07916a5313e28b9d (diff)
x86: fix nodemap_size according to nodeid bits
memnode.map is s16 array because of nodeid is 16 bit now. so need to increase the nodemap_size according to that bits. Signed-off-by: Yinghai Lu <yinghai.lu@sun.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm/numa_64.c')
-rw-r--r--arch/x86/mm/numa_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/numa_64.c b/arch/x86/mm/numa_64.c
index f0e5cabe49d8..dc3b1f7e1451 100644
--- a/arch/x86/mm/numa_64.c
+++ b/arch/x86/mm/numa_64.c
@@ -92,7 +92,7 @@ static int __init allocate_cachealigned_memnodemap(void)
92 92
93 pad = L1_CACHE_BYTES - 1; 93 pad = L1_CACHE_BYTES - 1;
94 pad_addr = 0x8000; 94 pad_addr = 0x8000;
95 nodemap_size = pad + memnodemapsize; 95 nodemap_size = pad + sizeof(s16) * memnodemapsize;
96 nodemap_addr = find_e820_area(pad_addr, end_pfn<<PAGE_SHIFT, 96 nodemap_addr = find_e820_area(pad_addr, end_pfn<<PAGE_SHIFT,
97 nodemap_size); 97 nodemap_size);
98 if (nodemap_addr == -1UL) { 98 if (nodemap_addr == -1UL) {