aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/mm/numa.c')
-rw-r--r--arch/x86/mm/numa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c
index f4a40bdb2e4..88e56272996 100644
--- a/arch/x86/mm/numa.c
+++ b/arch/x86/mm/numa.c
@@ -475,8 +475,8 @@ static bool __init numa_meminfo_cover_memory(const struct numa_meminfo *mi)
475 numaram = 0; 475 numaram = 0;
476 } 476 }
477 477
478 e820ram = max_pfn - (memblock_x86_hole_size(0, 478 e820ram = max_pfn - absent_pages_in_range(0, max_pfn);
479 PFN_PHYS(max_pfn)) >> PAGE_SHIFT); 479
480 /* We seem to lose 3 pages somewhere. Allow 1M of slack. */ 480 /* We seem to lose 3 pages somewhere. Allow 1M of slack. */
481 if ((s64)(e820ram - numaram) >= (1 << (20 - PAGE_SHIFT))) { 481 if ((s64)(e820ram - numaram) >= (1 << (20 - PAGE_SHIFT))) {
482 printk(KERN_ERR "NUMA: nodes only cover %LuMB of your %LuMB e820 RAM. Not used.\n", 482 printk(KERN_ERR "NUMA: nodes only cover %LuMB of your %LuMB e820 RAM. Not used.\n",