um: expose number of page table levels
authorKirill A. Shutemov <[email protected]>
Tue, 14 Apr 2015 22:46:11 +0000 (15:46 -0700)
committerLinus Torvalds <[email protected]>
Tue, 14 Apr 2015 23:49:02 +0000 (16:49 -0700)
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 <[email protected]>
Acked-by: Richard Weinberger <[email protected]>
Cc: Jeff Dike <[email protected]>
Tested-by: Guenter Roeck <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/um/Kconfig.um

index a7520c90f62df53981d57dea1d1a3b90f0958ff8..5dbfe3d9107c83356efa99733739630eb43d0eaa 100644 (file)
@@ -155,3 +155,8 @@ config MMAPPER
 
 config NO_DMA
        def_bool y
+
+config PGTABLE_LEVELS
+       int
+       default 3 if 3_LEVEL_PGTABLES
+       default 2