asm-generic: pgalloc: provide generic pgd_free()
Most architectures define pgd_free() as a wrapper for free_page(). Provide a generic version in asm-generic/pgalloc.h and enable its use for most architectures. Signed-off-by:Mike Rapoport <rppt@linux.ibm.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Reviewed-by:
Pekka Enberg <penberg@kernel.org> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> [m68k] Cc: Abdul Haleem <abdhalee@linux.vnet.ibm.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Christophe Leroy <christophe.leroy@csgroup.eu> Cc: Joerg Roedel <joro@8bytes.org> Cc: Joerg Roedel <jroedel@suse.de> Cc: Max Filippov <jcmvbkbc@gmail.com> Cc: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com> Cc: Stafford Horne <shorne@gmail.com> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Matthew Wilcox <willy@infradead.org> Link: http://lkml.kernel.org/r/20200627143453.31835-7-rppt@kernel.org Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/alpha/include/asm/pgalloc.h 0 additions, 6 deletionsarch/alpha/include/asm/pgalloc.h
- arch/arm/include/asm/pgalloc.h 1 addition, 0 deletionsarch/arm/include/asm/pgalloc.h
- arch/arm64/include/asm/pgalloc.h 1 addition, 0 deletionsarch/arm64/include/asm/pgalloc.h
- arch/csky/include/asm/pgalloc.h 1 addition, 6 deletionsarch/csky/include/asm/pgalloc.h
- arch/hexagon/include/asm/pgalloc.h 1 addition, 6 deletionsarch/hexagon/include/asm/pgalloc.h
- arch/ia64/include/asm/pgalloc.h 0 additions, 5 deletionsarch/ia64/include/asm/pgalloc.h
- arch/m68k/include/asm/sun3_pgalloc.h 1 addition, 6 deletionsarch/m68k/include/asm/sun3_pgalloc.h
- arch/microblaze/include/asm/pgalloc.h 0 additions, 6 deletionsarch/microblaze/include/asm/pgalloc.h
- arch/mips/include/asm/pgalloc.h 0 additions, 5 deletionsarch/mips/include/asm/pgalloc.h
- arch/nds32/mm/mm-nds32.c 2 additions, 0 deletionsarch/nds32/mm/mm-nds32.c
- arch/nios2/include/asm/pgalloc.h 1 addition, 6 deletionsarch/nios2/include/asm/pgalloc.h
- arch/parisc/include/asm/pgalloc.h 1 addition, 0 deletionsarch/parisc/include/asm/pgalloc.h
- arch/riscv/include/asm/pgalloc.h 0 additions, 5 deletionsarch/riscv/include/asm/pgalloc.h
- arch/sh/include/asm/pgalloc.h 1 addition, 0 deletionsarch/sh/include/asm/pgalloc.h
- arch/um/include/asm/pgalloc.h 0 additions, 1 deletionarch/um/include/asm/pgalloc.h
- arch/um/kernel/mem.c 0 additions, 5 deletionsarch/um/kernel/mem.c
- arch/x86/include/asm/pgalloc.h 1 addition, 0 deletionsarch/x86/include/asm/pgalloc.h
- arch/xtensa/include/asm/pgalloc.h 0 additions, 5 deletionsarch/xtensa/include/asm/pgalloc.h
- include/asm-generic/pgalloc.h 7 additions, 0 deletionsinclude/asm-generic/pgalloc.h
Loading
Please register or sign in to comment