alistair23-linux/arch/mips
Mike Rapoport 1355c31eeb asm-generic: pgalloc: provide generic pmd_alloc_one() and pmd_free_one()
For most architectures that support >2 levels of page tables,
pmd_alloc_one() is a wrapper for __get_free_pages(), sometimes with
__GFP_ZERO and sometimes followed by memset(0) instead.

More elaborate versions on arm64 and x86 account memory for the user page
tables and call to pgtable_pmd_page_ctor() as the part of PMD page
initialization.

Move the arm64 version to include/asm-generic/pgalloc.h and use the
generic version on several architectures.

The pgtable_pmd_page_ctor() is a NOP when ARCH_ENABLE_SPLIT_PMD_PTLOCK is
not enabled, so there is no functional change for most architectures
except of the addition of __GFP_ACCOUNT for allocation of user page
tables.

The pmd_free() is a wrapper for free_page() in all the cases, so no
functional change here.

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>
Cc: Matthew Wilcox <willy@infradead.org>
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: Geert Uytterhoeven <geert@linux-m68k.org>
Link: http://lkml.kernel.org/r/20200627143453.31835-5-rppt@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-08-07 11:33:26 -07:00
..
alchemy
ar7
ath25
ath79 MIPS: ath79: Remove unused include <asm/mips_machine.h> 2020-07-28 10:20:44 +02:00
bcm47xx
bcm63xx MIPS: BCM63xx: improve CFE version detection 2020-07-24 12:02:46 +02:00
bmips
boot MIPS upates for v5.9 2020-08-06 10:54:07 -07:00
cavium-octeon MIPS: OCTEON: add missing put_device() call in dwc3_octeon_device_init() 2020-07-24 11:06:58 +02:00
cobalt
configs MIPS upates for v5.9 2020-08-06 10:54:07 -07:00
crypto
dec
fw mips: Return proper error code from console ->setup() hook 2020-06-25 14:20:13 +02:00
generic
include asm-generic: pgalloc: provide generic pmd_alloc_one() and pmd_free_one() 2020-08-07 11:33:26 -07:00
jazz mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
jz4740 MIPS: ingenic: Hardcode mem size for qi,lb60 board 2020-07-31 17:48:57 +02:00
kernel MIPS upates for v5.9 2020-08-06 10:54:07 -07:00
kvm s390: implement diag318 2020-08-06 12:59:31 -07:00
lantiq MIPS: lantiq: xway: sysctrl: fix the GPHY clock alias names 2020-06-15 13:14:51 +02:00
lib treewide: Remove uninitialized_var() usage 2020-07-16 12:35:15 -07:00
loongson2ef MIPS: Loongson-2EF: disable fix-loongson3-llsc in compiler 2020-06-22 17:35:31 +02:00
loongson32
loongson64 MIPS: KVM: Add kvm guest support for Loongson-3 2020-08-04 09:39:29 +02:00
math-emu
mm MIPS upates for v5.9 2020-08-06 10:54:07 -07:00
mti-malta
net
netlogic
oprofile
pci MIPS upates for v5.9 2020-08-06 10:54:07 -07:00
pic32
pistachio
pnx833x
power
ralink This time around we have 4 lines of diff in the core framework, removing a 2020-06-10 11:42:19 -07:00
rb532
sgi-ip22
sgi-ip27 mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
sgi-ip30
sgi-ip32 mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
sibyte
sni
tools
txx9
vdso mips/vdso: Fix resource leaks in genvdso.c 2020-07-16 11:05:37 +02:00
vr41xx
Kbuild
Kbuild.platforms MIPS: Retire kvm paravirt 2020-07-24 10:53:23 +02:00
Kconfig s390: implement diag318 2020-08-06 12:59:31 -07:00
Kconfig.debug
Makefile
Makefile.postlink