From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by kanga.kvack.org (Postfix) with ESMTP id D8DED6B0073 for ; Thu, 26 Feb 2015 06:35:41 -0500 (EST) Received: by pabkx10 with SMTP id kx10so13255448pab.13 for ; Thu, 26 Feb 2015 03:35:41 -0800 (PST) Received: from mga02.intel.com (mga02.intel.com. [134.134.136.20]) by mx.google.com with ESMTP id aa3si8591863pbc.163.2015.02.26.03.35.35 for ; Thu, 26 Feb 2015 03:35:35 -0800 (PST) From: "Kirill A. Shutemov" Subject: [PATCHv3 09/17] powerpc: expose number of page table levels on Kconfig level Date: Thu, 26 Feb 2015 13:35:12 +0200 Message-Id: <1424950520-90188-10-git-send-email-kirill.shutemov@linux.intel.com> In-Reply-To: <1424950520-90188-1-git-send-email-kirill.shutemov@linux.intel.com> References: <1424950520-90188-1-git-send-email-kirill.shutemov@linux.intel.com> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman 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: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Tested-by: Guenter Roeck --- arch/powerpc/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 22b0940494bb..91ad76f30d18 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -297,6 +297,12 @@ config ZONE_DMA32 bool default y if PPC64 +config PGTABLE_LEVELS + int + default 2 if !PPC64 + default 3 if PPC_64K_PAGES + default 4 + source "init/Kconfig" source "kernel/Kconfig.freezer" -- 2.1.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org