]> git.ipfire.org Git - thirdparty/linux.git/commit
riscv: mm: pmdp_huge_get_and_clear(): avoid atomic ops when !CONFIG_SMP
authorPaul Walmsley <pjw@kernel.org>
Tue, 18 Nov 2025 04:19:27 +0000 (21:19 -0700)
committerPaul Walmsley <pjw@kernel.org>
Fri, 19 Dec 2025 07:18:33 +0000 (00:18 -0700)
commit1e6084d5c433b142b18d57694a6ab555ca6bb8cc
tree6390df44b0f4c3d7cb671e78f2185751c132cab2
parent818d78ba1b3f88d2bfee249f25020211488a26c3
riscv: mm: pmdp_huge_get_and_clear(): avoid atomic ops when !CONFIG_SMP

When !CONFIG_SMP, there's no need for atomic operations in
pmdp_huge_get_and_clear(), so, similar to what x86 does, let's not use
atomics in this case.  See also commit 546e42c8c6d94 ("riscv: Use an
atomic xchg in pudp_huge_get_and_clear()").

Cc: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/include/asm/pgtable.h