From: Kirill A. Shutemov Date: Tue, 14 Apr 2015 22:46:02 +0000 (-0700) Subject: sh: expose number of page table levels X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=69543d639938fc71b3df69d32ecccc58beb7e578;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git sh: 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 Cc: linux-sh@vger.kernel.org Tested-by: Guenter Roeck Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index eb4ef274ae9b..50057fed819d 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -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"