path: root/arch/nios2
diff options
authorAnshuman Khandual <>2021-06-30 18:53:59 -0700
committerLinus Torvalds <>2021-07-01 11:06:03 -0700
commit1c2f7d14d84f767a797558609eb034511e02f41e (patch)
treeda53722dc0f898d84ff7ea04cbdead304b83cd90 /arch/nios2
parent351de44fde5afc3b0b23294ebf404e78065c2745 (diff)
mm/thp: define default pmd_pgtable()
Currently most platforms define pmd_pgtable() as pmd_page() duplicating the same code all over. Instead just define a default value i.e pmd_page() for pmd_pgtable() and let platforms override when required via <asm/pgtable.h>. All the existing platform that override pmd_pgtable() have been moved into their respective <asm/pgtable.h> header in order to precede before the new generic definition. This makes it much cleaner with reduced code. Link: Signed-off-by: Anshuman Khandual <> Acked-by: Geert Uytterhoeven <> Acked-by: Mike Rapoport <> Cc: Nick Hu <> Cc: Richard Henderson <> Cc: Vineet Gupta <> Cc: Catalin Marinas <> Cc: Will Deacon <> Cc: Guo Ren <> Cc: Brian Cain <> Cc: Geert Uytterhoeven <> Cc: Michal Simek <> Cc: Thomas Bogendoerfer <> Cc: Ley Foon Tan <> Cc: Jonas Bonn <> Cc: Stefan Kristiansson <> Cc: Stafford Horne <> Cc: "James E.J. Bottomley" <> Cc: Michael Ellerman <> Cc: Christophe Leroy <> Cc: Paul Walmsley <> Cc: Palmer Dabbelt <> Cc: Heiko Carstens <> Cc: Yoshinori Sato <> Cc: "David S. Miller" <> Cc: Jeff Dike <> Cc: Thomas Gleixner <> Cc: Chris Zankel <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'arch/nios2')
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/nios2/include/asm/pgalloc.h b/arch/nios2/include/asm/pgalloc.h
index e6600d2a5ae0..3c4ae74d5798 100644
--- a/arch/nios2/include/asm/pgalloc.h
+++ b/arch/nios2/include/asm/pgalloc.h
@@ -25,7 +25,6 @@ static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd,
set_pmd(pmd, __pmd((unsigned long)page_address(pte)));
-#define pmd_pgtable(pmd) pmd_page(pmd)
* Initialize a new pmd table with invalid pointers.