Commit 08f4ffb3 authored by Russell King's avatar Russell King Committed by Russell King

[ARM] Convert open-coded __pmd_populate to use inline function

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 569d2c34
...@@ -295,14 +295,10 @@ alloc_init_page(unsigned long virt, unsigned long phys, unsigned int prot_l1, pg ...@@ -295,14 +295,10 @@ alloc_init_page(unsigned long virt, unsigned long phys, unsigned int prot_l1, pg
pte_t *ptep; pte_t *ptep;
if (pmd_none(*pmdp)) { if (pmd_none(*pmdp)) {
unsigned long pmdval;
ptep = alloc_bootmem_low_pages(2 * PTRS_PER_PTE * ptep = alloc_bootmem_low_pages(2 * PTRS_PER_PTE *
sizeof(pte_t)); sizeof(pte_t));
pmdval = __pa(ptep) | prot_l1; __pmd_populate(pmdp, __pa(ptep) | prot_l1);
pmdp[0] = __pmd(pmdval);
pmdp[1] = __pmd(pmdval + 256 * sizeof(pte_t));
flush_pmd_entry(pmdp);
} }
ptep = pte_offset_kernel(pmdp, virt); ptep = pte_offset_kernel(pmdp, virt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment