diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2015-04-14 18:46:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-14 19:49:02 -0400 |
commit | 6b8ce2a1a464526335672c33cbf3cb9fc638efff (patch) | |
tree | 473ad14902d77f4b264d3573a0a8f5e545714439 /arch/um | |
parent | 909d45e62801ea77422d478519baa7d2287c77f7 (diff) |
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 'arch/um')
-rw-r--r-- | arch/um/Kconfig.um | 5 |
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 | |||
155 | 155 | ||
156 | config NO_DMA | 156 | config NO_DMA |
157 | def_bool y | 157 | def_bool y |
158 | |||
159 | config PGTABLE_LEVELS | ||
160 | int | ||
161 | default 3 if 3_LEVEL_PGTABLES | ||
162 | default 2 | ||