summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/mm-armv.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-09-01 14:45:18 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-09-01 14:45:18 +0100
commit08f4ffb3eb4ff23daf9c61bcd523940d43c2270c (patch)
tree4aefef161593bc013a0d848a0be05610eaea0d69 /arch/arm/mm/mm-armv.c
parent569d2c34dcf259b07977835492aa8813d1168230 (diff)
downloadop-kernel-dev-08f4ffb3eb4ff23daf9c61bcd523940d43c2270c.zip
op-kernel-dev-08f4ffb3eb4ff23daf9c61bcd523940d43c2270c.tar.gz
[ARM] Convert open-coded __pmd_populate to use inline function
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
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 4dae00b..8cb024a 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
pte_t *ptep;
if (pmd_none(*pmdp)) {
- unsigned long pmdval;
ptep = alloc_bootmem_low_pages(2 * PTRS_PER_PTE *
sizeof(pte_t));
- pmdval = __pa(ptep) | prot_l1;
- pmdp[0] = __pmd(pmdval);
- pmdp[1] = __pmd(pmdval + 256 * sizeof(pte_t));
- flush_pmd_entry(pmdp);
+ __pmd_populate(pmdp, __pa(ptep) | prot_l1);
}
ptep = pte_offset_kernel(pmdp, virt);
OpenPOWER on IntegriCloud