diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2013-09-13 11:14:25 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2013-09-13 11:14:25 -0400 |
commit | 8629470ef89da00bd1b974df17ccbb36b3865798 (patch) | |
tree | 451c429d67cf700097da6518aab9d7c6d1283918 /arch/tile | |
parent | 4db30e38ec2ad937678964f227202c6b5e90508e (diff) |
tile: use pmd_pfn() instead of casting via pte_t
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/mm/pgtable.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/tile/mm/pgtable.c b/arch/tile/mm/pgtable.c index 2deaddf3e01f..4fd9ec0b58ed 100644 --- a/arch/tile/mm/pgtable.c +++ b/arch/tile/mm/pgtable.c | |||
@@ -127,8 +127,7 @@ void shatter_huge_page(unsigned long addr) | |||
127 | } | 127 | } |
128 | 128 | ||
129 | /* Shatter the huge page into the preallocated L2 page table. */ | 129 | /* Shatter the huge page into the preallocated L2 page table. */ |
130 | pmd_populate_kernel(&init_mm, pmd, | 130 | pmd_populate_kernel(&init_mm, pmd, get_prealloc_pte(pmd_pfn(*pmd))); |
131 | get_prealloc_pte(pte_pfn(*(pte_t *)pmd))); | ||
132 | 131 | ||
133 | #ifdef __PAGETABLE_PMD_FOLDED | 132 | #ifdef __PAGETABLE_PMD_FOLDED |
134 | /* Walk every pgd on the system and update the pmd there. */ | 133 | /* Walk every pgd on the system and update the pmd there. */ |