LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] x86_64: fix nodemap_size according to nodeid bits
@ 2008-01-29 21:43 Yinghai Lu
0 siblings, 0 replies; only message in thread
From: Yinghai Lu @ 2008-01-29 21:43 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Mike Travis, Christoph Lameter, linux-kernel
[PATCH] x86_64: 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>
diff --git a/arch/x86/mm/numa_64.c b/arch/x86/mm/numa_64.c
index f0e5cab..dc3b1f7 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)
pad = L1_CACHE_BYTES - 1;
pad_addr = 0x8000;
- nodemap_size = pad + memnodemapsize;
+ nodemap_size = pad + sizeof(s16) * memnodemapsize;
nodemap_addr = find_e820_area(pad_addr, end_pfn<<PAGE_SHIFT,
nodemap_size);
if (nodemap_addr == -1UL) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-29 21:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-29 21:43 [PATCH] x86_64: fix nodemap_size according to nodeid bits Yinghai Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).