diff options
author | Steve Capper <steve.capper@arm.com> | 2012-07-19 12:00:10 +0100 |
---|---|---|
committer | Steve Capper <steve.capper@linaro.org> | 2013-05-14 15:22:25 +0100 |
commit | 6b5757462e052eb07f2304b591e6d02c9af1256b (patch) | |
tree | 5065948e034f7e7f62897648c54a7a0c6c84cf56 /arch/arm/include/asm/pgtable-3level.h | |
parent | 35ab7d4c8310839b04b7053afab4b307abb7b367 (diff) |
ARM: mm: Transparent huge page support for non-LPAE systems.tracking-hugepages-llct-20130715.0tracking-hugepages-llct-20130708.0tracking-hugepages-llct-20130701.0tracking-hugepages-llct-20130626.0tracking-hugepages-llct-20130625.0tracking-hugepages-llct-20130618.0tracking-hugepages-llct-20130617.1tracking-hugepages-llct-20130617.0tracking-hugepages-llct-20130613.0tracking-hugepages-llct-20130610.0tracking-hugepages-llct-20130606.0tracking-hugepages-llct-20130604.1tracking-hugepages-llct-20130604.0tracking-hugepages-llct-20130521.0tracking-hugepages-llct-20130518.0tracking-hugepages-llct-20130515.1tracking-hugepages-llct-20130515.0tracking-hugepages-llct-20130514.0arm-hugepages-20130514
Much of the required code for THP has been implemented in the
earlier non-LPAE HugeTLB patch.
One more domain bit is used (to store whether or not the THP is
splitting).
Some THP helper functions are defined; and we have to re-define
pmd_page such that it distinguishes between page tables and
sections.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Steve Capper <steve.capper@arm.com>
Diffstat (limited to 'arch/arm/include/asm/pgtable-3level.h')
-rw-r--r-- | arch/arm/include/asm/pgtable-3level.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/pgtable-3level.h b/arch/arm/include/asm/pgtable-3level.h index ad027238f389..317bd3a9a1b7 100644 --- a/arch/arm/include/asm/pgtable-3level.h +++ b/arch/arm/include/asm/pgtable-3level.h @@ -229,6 +229,8 @@ PMD_BIT_FUNC(mknotpresent, &= ~PMD_TYPE_MASK); #define pfn_pmd(pfn,prot) (__pmd(((phys_addr_t)(pfn) << PAGE_SHIFT) | pgprot_val(prot))) #define mk_pmd(page,prot) pfn_pmd(page_to_pfn(page),prot) +#define pmd_page(pmd) pfn_to_page(__phys_to_pfn(pmd_val(pmd) & PHYS_MASK)) + static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) { const pmdval_t mask = PMD_SECT_USER | PMD_SECT_XN | PMD_SECT_RDONLY; |