From: Russell King Date: Thu, 1 Sep 2005 13:45:18 +0000 (+0100) Subject: [ARM] Convert open-coded __pmd_populate to use inline function X-Git-Tag: v2.6.14-rc1~1016^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=08f4ffb3eb4ff23daf9c61bcd523940d43c2270c;p=linux-2.6-omap-h63xx.git [ARM] Convert open-coded __pmd_populate to use inline function Signed-off-by: Russell King --- diff --git a/arch/arm/mm/mm-armv.c b/arch/arm/mm/mm-armv.c index 4dae00bf7a5..8cb024aa88b 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);