]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
sh: expose number of page table levels
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Tue, 14 Apr 2015 22:46:02 +0000 (15:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
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 <kirill.shutemov@linux.intel.com>
Cc: linux-sh@vger.kernel.org
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>
arch/sh/Kconfig

index eb4ef274ae9bd7193ec748606816d9800b6545bf..50057fed819ddf3c07a8e16841c65d63cbaa5168 100644 (file)
@@ -162,6 +162,10 @@ config NEED_DMA_MAP_STATE
 config NEED_SG_DMA_LENGTH
        def_bool y
 
+config PGTABLE_LEVELS
+       default 3 if X2TLB
+       default 2
+
 source "init/Kconfig"
 
 source "kernel/Kconfig.freezer"