summaryrefslogtreecommitdiffstats
path: root/arch/sparc/Kconfig
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>2015-04-15 00:46:05 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-15 01:49:02 +0200
commit81a2936c1a98dd007c510dc523c5bbdce263878b (patch)
treebdd67e6fa9f5a79687ae853c94cbc78eb8558e18 /arch/sparc/Kconfig
parentsh: expose number of page table levels (diff)
downloadlinux-81a2936c1a98dd007c510dc523c5bbdce263878b.tar.xz
linux-81a2936c1a98dd007c510dc523c5bbdce263878b.zip
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 '')
-rw-r--r--arch/sparc/Kconfig4
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
config ARCH_SUPPORTS_DEBUG_PAGEALLOC
def_bool y if SPARC64
+config PGTABLE_LEVELS
+ default 4 if 64BIT
+ default 3
+
source "init/Kconfig"
source "kernel/Kconfig.freezer"