diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-09-01 09:45:18 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-09-01 09:45:18 -0400 |
commit | 08f4ffb3eb4ff23daf9c61bcd523940d43c2270c (patch) | |
tree | 4aefef161593bc013a0d848a0be05610eaea0d69 /arch/arm/mm/mm-armv.c | |
parent | 569d2c34dcf259b07977835492aa8813d1168230 (diff) |
[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.c | 6 |
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 | ||