From: Helge Deller Date: Mon, 16 Mar 2015 20:17:50 +0000 (+0100) Subject: parisc: Fix pmd code to depend on PT_NLEVELS value, not on CONFIG_64BIT X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2e3f0ab2bb4853694570b9610b1fcfbfa8fd295b;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git parisc: Fix pmd code to depend on PT_NLEVELS value, not on CONFIG_64BIT Make the code which sets up the pmd depend on PT_NLEVELS == 3, not on CONFIG_64BIT. The reason is, that a 64bit kernel with a page size greater than 4k doesn't need the pmd and thus has PT_NLEVELS = 2. Signed-off-by: Helge Deller --- diff --git a/arch/parisc/include/asm/pgalloc.h b/arch/parisc/include/asm/pgalloc.h index 63e9ecae1310..d17437238a2c 100644 --- a/arch/parisc/include/asm/pgalloc.h +++ b/arch/parisc/include/asm/pgalloc.h @@ -26,7 +26,7 @@ static inline pgd_t *pgd_alloc(struct mm_struct *mm) if (likely(pgd != NULL)) { memset(pgd, 0, PAGE_SIZE<