diff options
-rw-r--r-- | arch/x86/mm/numa_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/numa_64.c b/arch/x86/mm/numa_64.c index 7762a517d69..02d36ff85eb 100644 --- a/arch/x86/mm/numa_64.c +++ b/arch/x86/mm/numa_64.c | |||
@@ -87,7 +87,7 @@ static int __init allocate_cachealigned_memnodemap(void) | |||
87 | 87 | ||
88 | addr = 0x8000; | 88 | addr = 0x8000; |
89 | nodemap_size = roundup(sizeof(s16) * memnodemapsize, L1_CACHE_BYTES); | 89 | nodemap_size = roundup(sizeof(s16) * memnodemapsize, L1_CACHE_BYTES); |
90 | nodemap_addr = memblock_find_in_range(addr, max_pfn<<PAGE_SHIFT, | 90 | nodemap_addr = memblock_find_in_range(addr, get_max_mapped(), |
91 | nodemap_size, L1_CACHE_BYTES); | 91 | nodemap_size, L1_CACHE_BYTES); |
92 | if (nodemap_addr == MEMBLOCK_ERROR) { | 92 | if (nodemap_addr == MEMBLOCK_ERROR) { |
93 | printk(KERN_ERR | 93 | printk(KERN_ERR |