powerpc/mm: Move THP headers around
We support THP only with book3s_64 and 64K page size. Move THP details to hash64-64k.h to clarify the same. Acked-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
26a344aea4
commit
e34aa03ca4
@@ -359,7 +359,7 @@ struct page *pud_page(pud_t pud)
|
||||
struct page *pmd_page(pmd_t pmd)
|
||||
{
|
||||
if (pmd_trans_huge(pmd) || pmd_huge(pmd))
|
||||
return pfn_to_page(pmd_pfn(pmd));
|
||||
return pte_page(pmd_pte(pmd));
|
||||
return virt_to_page(pmd_page_vaddr(pmd));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user