diff mbox

[PATCHv3,11/17] sh: expose number of page table levels

Message ID 1424950520-90188-12-git-send-email-kirill.shutemov@linux.intel.com (mailing list archive)
State Awaiting Upstream
Headers show

Commit Message

Kirill A . Shutemov Feb. 26, 2015, 11:35 a.m. UTC
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>
---
 arch/sh/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

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"