microblaze: define __PAGETABLE_PMD_FOLDED
authorKirill A. Shutemov <[email protected]>
Wed, 11 Feb 2015 23:26:38 +0000 (15:26 -0800)
committerLinus Torvalds <[email protected]>
Thu, 12 Feb 2015 01:06:03 +0000 (17:06 -0800)
Microblaze uses custom implementation of PMD folding, but doesn't define
__PAGETABLE_PMD_FOLDED, which generic code expects to see.  Let's fix it.

Defining __PAGETABLE_PMD_FOLDED will drop out unused __pmd_alloc().  It
also fixes problems with recently-introduced pmd accounting.

Signed-off-by: Kirill A. Shutemov <[email protected]>
Reported-by: Guenter Roeck <[email protected]>
Tested-by: Guenter Roeck <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/microblaze/include/asm/pgtable.h

index 91b9b46fbb5d5f1e3412dcacf376f789b863a106..c6b6af4ca2a0be80934adb720078c8e1810a3e08 100644 (file)
@@ -61,6 +61,8 @@ extern int mem_init_done;
 
 #include <asm-generic/4level-fixup.h>
 
+#define __PAGETABLE_PMD_FOLDED
+
 #ifdef __KERNEL__
 #ifndef __ASSEMBLY__