diff options
author | zhichang.yuan <zhichang.yuan@linaro.org> | 2014-12-09 10:26:47 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2015-01-28 15:07:28 +0300 |
commit | 523d6e9fae9333a0e2a7baf4d11c8bcca544790e (patch) | |
tree | 3c0d9fc243f9e00ce49985e078a8c641029f0833 /arch/arm64/include/asm/pgtable.h | |
parent | 62fa5e20bd73385253d2b8d3a51f80d1e6d2e1c6 (diff) | |
download | linux-523d6e9fae9333a0e2a7baf4d11c8bcca544790e.tar.xz |
arm64:mm: free the useless initial page table
For 64K page system, after mapping a PMD section, the corresponding initial
page table is not needed any more. That page can be freed.
Signed-off-by: Zhichang Yuan <zhichang.yuan@linaro.org>
[catalin.marinas@arm.com: added BUG_ON() to catch late memblock freeing]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/pgtable.h')
-rw-r--r-- | arch/arm64/include/asm/pgtable.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h index 59079248529d..67f6ede39474 100644 --- a/arch/arm64/include/asm/pgtable.h +++ b/arch/arm64/include/asm/pgtable.h @@ -342,9 +342,12 @@ extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, #ifdef CONFIG_ARM64_64K_PAGES #define pud_sect(pud) (0) +#define pud_table(pud) (1) #else #define pud_sect(pud) ((pud_val(pud) & PUD_TYPE_MASK) == \ PUD_TYPE_SECT) +#define pud_table(pud) ((pud_val(pud) & PUD_TYPE_MASK) == \ + PUD_TYPE_TABLE) #endif static inline void set_pmd(pmd_t *pmdp, pmd_t pmd) |