summaryrefslogtreecommitdiffstats
path: root/arch/um/Kconfig.um
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>2015-04-15 00:46:11 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-15 01:49:02 +0200
commit6b8ce2a1a464526335672c33cbf3cb9fc638efff (patch)
tree473ad14902d77f4b264d3573a0a8f5e545714439 /arch/um/Kconfig.um
parenttile: expose number of page table levels (diff)
downloadlinux-6b8ce2a1a464526335672c33cbf3cb9fc638efff.tar.xz
linux-6b8ce2a1a464526335672c33cbf3cb9fc638efff.zip
um: 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> Acked-by: Richard Weinberger <richard@nod.at> Cc: Jeff Dike <jdike@addtoit.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 '')
-rw-r--r--arch/um/Kconfig.um5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/um/Kconfig.um b/arch/um/Kconfig.um
index a7520c90f62d..5dbfe3d9107c 100644
--- a/arch/um/Kconfig.um
+++ b/arch/um/Kconfig.um
@@ -155,3 +155,8 @@ config MMAPPER
config NO_DMA
def_bool y
+
+config PGTABLE_LEVELS
+ int
+ default 3 if 3_LEVEL_PGTABLES
+ default 2