]> Git Repo - linux.git/commit
xtensa: switch to generic version of pte allocation
authorMike Rapoport <[email protected]>
Fri, 7 Aug 2020 06:22:36 +0000 (23:22 -0700)
committerLinus Torvalds <[email protected]>
Fri, 7 Aug 2020 18:33:26 +0000 (11:33 -0700)
commit7278914ca1fdb54ba101c8617fb86953b31348cd
tree01ccdd1a564f6574aed67a67949ea0475b8e46b8
parentfc2a6b837db74aed1160ebcfe8dd94bb58141401
xtensa: switch to generic version of pte allocation

xtensa clears PTEs during allocation of the page tables and pte_clear()
sets the PTE to a non-zero value.  Splitting ptes_clear() helper out of
pte_alloc_one() and pte_alloc_one_kernel() allows reuse of base generic
allocation methods (__pte_alloc_one() and __pte_alloc_one_kernel()) and
the common GFP mask for page table allocations.

The pte_free() and pte_free_kernel() implementations on xtensa are
identical to the generic ones and can be dropped.

[[email protected]: xtensa: fix closing endif comment]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Mike Rapoport <[email protected]>
Signed-off-by: Max Filippov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Pekka Enberg <[email protected]>
Cc: Abdul Haleem <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Christophe Leroy <[email protected]>
Cc: Joerg Roedel <[email protected]>
Cc: Joerg Roedel <[email protected]>
Cc: Max Filippov <[email protected]>
Cc: Peter Zijlstra (Intel) <[email protected]>
Cc: Satheesh Rajendran <[email protected]>
Cc: Stafford Horne <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
arch/xtensa/include/asm/pgalloc.h
This page took 0.046371 seconds and 4 git commands to generate.