diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2015-04-14 18:46:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-14 19:49:02 -0400 |
commit | 81a2936c1a98dd007c510dc523c5bbdce263878b (patch) | |
tree | bdd67e6fa9f5a79687ae853c94cbc78eb8558e18 /arch/sparc | |
parent | 69543d639938fc71b3df69d32ecccc58beb7e578 (diff) |
sparc: expose number of page table levels
We would want to use number of page table level to define mm_struct.
Let's expose it as CONFIG_PGTABLE_LEVELS.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: "David S. Miller" <davem@davemloft.net>
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/sparc')
-rw-r--r-- | arch/sparc/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index efb00ec75805..e49502acbab4 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig | |||
@@ -146,6 +146,10 @@ config GENERIC_ISA_DMA | |||
146 | config ARCH_SUPPORTS_DEBUG_PAGEALLOC | 146 | config ARCH_SUPPORTS_DEBUG_PAGEALLOC |
147 | def_bool y if SPARC64 | 147 | def_bool y if SPARC64 |
148 | 148 | ||
149 | config PGTABLE_LEVELS | ||
150 | default 4 if 64BIT | ||
151 | default 3 | ||
152 | |||
149 | source "init/Kconfig" | 153 | source "init/Kconfig" |
150 | 154 | ||
151 | source "kernel/Kconfig.freezer" | 155 | source "kernel/Kconfig.freezer" |