aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/mm-armv.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mm/mm-armv.c')
-rw-r--r--arch/arm/mm/mm-armv.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mm/mm-armv.c b/arch/arm/mm/mm-armv.c
index 4dae00bf7a56..8cb024aa88bd 100644
--- a/arch/arm/mm/mm-armv.c
+++ b/arch/arm/mm/mm-armv.c
@@ -295,14 +295,10 @@ alloc_init_page(unsigned long virt, unsigned long phys, unsigned int prot_l1, pg
295 pte_t *ptep; 295 pte_t *ptep;
296 296
297 if (pmd_none(*pmdp)) { 297 if (pmd_none(*pmdp)) {
298 unsigned long pmdval;
299 ptep = alloc_bootmem_low_pages(2 * PTRS_PER_PTE * 298 ptep = alloc_bootmem_low_pages(2 * PTRS_PER_PTE *
300 sizeof(pte_t)); 299 sizeof(pte_t));
301 300
302 pmdval = __pa(ptep) | prot_l1; 301 __pmd_populate(pmdp, __pa(ptep) | prot_l1);
303 pmdp[0] = __pmd(pmdval);
304 pmdp[1] = __pmd(pmdval + 256 * sizeof(pte_t));
305 flush_pmd_entry(pmdp);
306 } 302 }
307 ptep = pte_offset_kernel(pmdp, virt); 303 ptep = pte_offset_kernel(pmdp, virt);
308 304