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/Kconfig | |
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/Kconfig')
-rw-r--r-- | arch/arm64/Kconfig | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 1b8e97331ffb..3f2fba996bc2 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig | |||
@@ -143,6 +143,13 @@ config KERNEL_MODE_NEON | |||
143 | config FIX_EARLYCON_MEM | 143 | config FIX_EARLYCON_MEM |
144 | def_bool y | 144 | def_bool y |
145 | 145 | ||
146 | config PGTABLE_LEVELS | ||
147 | int | ||
148 | default 2 if ARM64_64K_PAGES && ARM64_VA_BITS_42 | ||
149 | default 3 if ARM64_64K_PAGES && ARM64_VA_BITS_48 | ||
150 | default 3 if ARM64_4K_PAGES && ARM64_VA_BITS_39 | ||
151 | default 4 if ARM64_4K_PAGES && ARM64_VA_BITS_48 | ||
152 | |||
146 | source "init/Kconfig" | 153 | source "init/Kconfig" |
147 | 154 | ||
148 | source "kernel/Kconfig.freezer" | 155 | source "kernel/Kconfig.freezer" |
@@ -413,13 +420,6 @@ config ARM64_VA_BITS | |||
413 | default 42 if ARM64_VA_BITS_42 | 420 | default 42 if ARM64_VA_BITS_42 |
414 | default 48 if ARM64_VA_BITS_48 | 421 | default 48 if ARM64_VA_BITS_48 |
415 | 422 | ||
416 | config ARM64_PGTABLE_LEVELS | ||
417 | int | ||
418 | default 2 if ARM64_64K_PAGES && ARM64_VA_BITS_42 | ||
419 | default 3 if ARM64_64K_PAGES && ARM64_VA_BITS_48 | ||
420 | default 3 if ARM64_4K_PAGES && ARM64_VA_BITS_39 | ||
421 | default 4 if ARM64_4K_PAGES && ARM64_VA_BITS_48 | ||
422 | |||
423 | config CPU_BIG_ENDIAN | 423 | config CPU_BIG_ENDIAN |
424 | bool "Build big-endian kernel" | 424 | bool "Build big-endian kernel" |
425 | help | 425 | help |