path: root/arch/nds32
diff options
authorMike Rapoport <>2019-09-23 15:35:31 -0700
committerLinus Torvalds <>2019-09-24 15:54:09 -0700
commit782de70c42930baae55234f3df0dc90774924447 (patch)
tree3381e20d3c3a51631eb0f8fac3d6bfe87a61d894 /arch/nds32
parent1b9a9d8564cbc49e1e5529460ca70bf7353aa4d1 (diff)
mm: consolidate pgtable_cache_init() and pgd_cache_init()
Both pgtable_cache_init() and pgd_cache_init() are used to initialize kmem cache for page table allocations on several architectures that do not use PAGE_SIZE tables for one or more levels of the page table hierarchy. Most architectures do not implement these functions and use __weak default NOP implementation of pgd_cache_init(). Since there is no such default for pgtable_cache_init(), its empty stub is duplicated among most architectures. Rename the definitions of pgd_cache_init() to pgtable_cache_init() and drop empty stubs of pgtable_cache_init(). Link: Signed-off-by: Mike Rapoport <> Acked-by: Will Deacon <> [arm64] Acked-by: Thomas Gleixner <> [x86] Cc: Catalin Marinas <> Cc: Ingo Molnar <> Cc: Borislav Petkov <> Cc: Matthew Wilcox <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'arch/nds32')
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/nds32/include/asm/pgtable.h b/arch/nds32/include/asm/pgtable.h
index c70cc56bec09..0588ec99725c 100644
--- a/arch/nds32/include/asm/pgtable.h
+++ b/arch/nds32/include/asm/pgtable.h
@@ -403,8 +403,6 @@ extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
* into virtual address `from'
-#define pgtable_cache_init() do { } while (0)
#endif /* !__ASSEMBLY__ */
#endif /* _ASMNDS32_PGTABLE_H */