Skip to content

riscv: mm: clean up and optimize some page table get-and-clear functions

Paul Walmsley linux-riscv 1 version Applied

Status from this message: This series was applied to riscv/linux.git (for-next)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3riscv: mm: pmdp_huge_get_and_clear(): avoid atomic ops when !CONFIG_SMParch/riscv/include/asm/pgtable.h+6 -00 repliesApplied
2/3riscv: mm: ptep_get_and_clear(): avoid atomic ops when !CONFIG_SMParch/riscv/include/asm/pgtable.h+6 -00 repliesApplied
3/3riscv: mm: use xchg() on non-atomic_long_t variables, not atomic_long_xchg()arch/riscv/include/asm/pgtable.h+2 -20 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] riscv: mm: clean up and optimize some page table get-and-clear functions

This series implements some minor cleanups on the RISC-V page table get-and-clear functions. We continue the work from commit 546e42c8c6d94 ("riscv: Use an atomic xchg in pudp_huge_get_and_clear()"). The two themes are:

- avoid atomic operations on non-SMP kernels

- use xchg() rather than atomic_long_xchg() on variables that aren't atomic_long_t

Tested on QEMU 10.0.6 on RV32 and RV64, SMP and !SMP, running kselftests.

- Paul

Paul Walmsley (3):
riscv: mm: pmdp_huge_get_and_clear(): avoid atomic ops when
!CONFIG_SMP
riscv: mm: ptep_get_and_clear(): avoid atomic ops when !CONFIG_SMP
riscv: mm: use xchg() on non-atomic_long_t variables, not
atomic_long_xchg()

 arch/riscv/include/asm/pgtable.h | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

base-commit: dcb6fa37fd7bc9c3d2b066329b0d27dedf8becaa

Signature · 7 lines
2.48.1


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv