diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2015-04-14 18:45:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-14 19:49:01 -0400 |
commit | 9f25e6ad58e1fb3b4d441e4c55635c4598a6fa94 (patch) | |
tree | 166d29ab4fe109797e6f9613f6894e321176830b /arch/arm64/mm | |
parent | f5d4547ad27737137fae8e67025e5664ecb8e790 (diff) |
arm64: expose number of page table levels on Kconfig level
We would want to use number of page table level to define mm_struct.
Let's expose it as CONFIG_PGTABLE_LEVELS.
ARM64_PGTABLE_LEVELS is renamed to PGTABLE_LEVELS and defined before
sourcing init/Kconfig: arch/Kconfig will define default value and it's
sourced from init/Kconfig.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm64/mm')
-rw-r--r-- | arch/arm64/mm/mmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c index c6daaf6c6f97..79e01163a981 100644 --- a/arch/arm64/mm/mmu.c +++ b/arch/arm64/mm/mmu.c | |||
@@ -550,10 +550,10 @@ void vmemmap_free(unsigned long start, unsigned long end) | |||
550 | #endif /* CONFIG_SPARSEMEM_VMEMMAP */ | 550 | #endif /* CONFIG_SPARSEMEM_VMEMMAP */ |
551 | 551 | ||
552 | static pte_t bm_pte[PTRS_PER_PTE] __page_aligned_bss; | 552 | static pte_t bm_pte[PTRS_PER_PTE] __page_aligned_bss; |
553 | #if CONFIG_ARM64_PGTABLE_LEVELS > 2 | 553 | #if CONFIG_PGTABLE_LEVELS > 2 |
554 | static pmd_t bm_pmd[PTRS_PER_PMD] __page_aligned_bss; | 554 | static pmd_t bm_pmd[PTRS_PER_PMD] __page_aligned_bss; |
555 | #endif | 555 | #endif |
556 | #if CONFIG_ARM64_PGTABLE_LEVELS > 3 | 556 | #if CONFIG_PGTABLE_LEVELS > 3 |
557 | static pud_t bm_pud[PTRS_PER_PUD] __page_aligned_bss; | 557 | static pud_t bm_pud[PTRS_PER_PUD] __page_aligned_bss; |
558 | #endif | 558 | #endif |
559 | 559 | ||