]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: mm: use xchg() on non-atomic_long_t variables, not atomic_long_xchg()
authorPaul Walmsley <pjw@kernel.org>
Tue, 18 Nov 2025 04:19:28 +0000 (21:19 -0700)
committerPaul Walmsley <pjw@kernel.org>
Fri, 19 Dec 2025 07:18:33 +0000 (00:18 -0700)
commite0e51a0de02cf0e5008d0e167288ad1598005b9e
treeadb47cb0e6e9d338fbb05b0a2df1d7391e6716c0
parent425cc087fbaf267be7683b95481b46a058d63e49
riscv: mm: use xchg() on non-atomic_long_t variables, not atomic_long_xchg()

Let's not call atomic_long_xchg() on something that's not an
atomic_long_t, and just use xchg() instead.  Continues the cleanup
from 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