aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/mm/init_32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c
index c059c460e32d..156000de6e62 100644
--- a/arch/x86/mm/init_32.c
+++ b/arch/x86/mm/init_32.c
@@ -733,6 +733,11 @@ static void __init find_early_table_space(unsigned long end)
733 pmds = (end + PMD_SIZE - 1) >> PMD_SHIFT; 733 pmds = (end + PMD_SIZE - 1) >> PMD_SHIFT;
734 tables += PAGE_ALIGN(pmds * sizeof(pmd_t)); 734 tables += PAGE_ALIGN(pmds * sizeof(pmd_t));
735 735
736 if (!cpu_has_pse) {
737 int ptes = (end + PAGE_SIZE - 1) >> PAGE_SHIFT;
738 tables += PAGE_ALIGN(ptes * sizeof(pte_t));
739 }
740
736 /* 741 /*
737 * RED-PEN putting page tables only on node 0 could 742 * RED-PEN putting page tables only on node 0 could
738 * cause a hotspot and fill up ZONE_DMA. The page tables 743 * cause a hotspot and fill up ZONE_DMA. The page tables