linux/arch/powerpc
Kevin Brodsky 8e8299bf38 powerpc: mm: call ctor/dtor for kernel PTEs
The generic implementation of pte_{alloc_one,free}_kernel now calls the
[cd]tor, without initialising the ptlock needlessly as
pagetable_pte_ctor() skips it for init_mm.

On powerpc, all functions related to PTE allocation are implemented by
common helpers, which are passed a boolean to differentiate user from
kernel pgtables.  This patch aligns the powerpc implementation with the
generic one by calling pagetable_pte_[cd]tor() unconditionally in those
helpers.

Link: https://lkml.kernel.org/r/20250408095222.860601-6-kevin.brodsky@arm.com
Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Andreas Larsson <andreas@gaisler.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Linus Waleij <linus.walleij@linaro.org>
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Qi Zheng <zhengqi.arch@bytedance.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: <x86@kernel.org>
Cc: Yang Shi <yang@os.amperecomputing.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-05-11 17:48:22 -07:00
..
boot powerpc/boot: Fix dash warning 2025-04-24 12:25:39 +05:30
configs CRC cleanups for 6.15 2025-04-08 12:09:28 -07:00
crypto This update includes the following changes: 2025-03-29 10:01:55 -07:00
include syscall.h: introduce syscall_set_nr() 2025-05-11 17:48:15 -07:00
kernel powerpc64/ftrace: fix module loading without patchable function entries 2025-04-15 11:40:54 +05:30
kexec - The 7 patch series "powerpc/crash: use generic crashkernel 2025-04-01 10:06:52 -07:00
kvm A set of final cleanups for the timer subsystem: 2025-04-06 08:35:37 -07:00
lib CRC updates for 6.15 2025-03-25 18:33:04 -07:00
math-emu
mm powerpc: mm: call ctor/dtor for kernel PTEs 2025-05-11 17:48:22 -07:00
net powerpc updates for 6.13 2024-11-23 10:44:31 -08:00
perf Driver core updates for 6.15-rc1 2025-04-01 11:02:03 -07:00
platforms powerpc: Add check to select PPC_RADIX_BROADCAST_TLBIE 2025-04-15 11:42:26 +05:30
purgatory
sysdev irqdomain: Rename irq_set_default_host() to irq_set_default_domain() 2025-04-04 16:39:10 +02:00
tools powerpc/ftrace: Fix ftrace bug with KASAN=y 2024-11-10 22:33:51 +11:00
xmon powerpc updates for 6.15 2025-03-27 19:39:08 -07:00
Kbuild powerpc64/ftrace: Move ftrace sequence out of line 2024-10-31 11:00:54 +11:00
Kconfig - The 7 patch series "powerpc/crash: use generic crashkernel 2025-04-01 10:06:52 -07:00
Kconfig.debug powerpc: Remove UDBG_RTAS_CONSOLE 2025-02-26 21:15:09 +05:30
Makefile Kbuild updates for v6.13 2024-11-30 13:41:50 -08:00
Makefile.postlink powerpc/ftrace: Add a postlink script to validate function tracer 2024-10-31 11:00:54 +11:00