]> git.ipfire.org Git - thirdparty/linux.git/commit
riscv: mm: ptep_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)
commit425cc087fbaf267be7683b95481b46a058d63e49
tree448704fad9744c7677b752da71eb83e3d6f8a200
parent1e6084d5c433b142b18d57694a6ab555ca6bb8cc
riscv: mm: ptep_get_and_clear(): avoid atomic ops when !CONFIG_SMP

When !CONFIG_SMP, there's no need for atomic operations in
ptep_get_and_clear(), so, similar to x86, let's not use atomics in
this case.

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