[PATCH v1 0/5] Rework & improve riscv cmpxchg.h and atomic.h

patchwork-bot+linux-riscv at kernel.org patchwork-bot+linux-riscv at kernel.org
Wed Apr 10 07:20:33 PDT 2024


Hello:

This series was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer at rivosinc.com>:

On Wed,  3 Jan 2024 13:31:58 -0300 you wrote:
> While studying riscv's cmpxchg.h file, I got really interested in
> understanding how RISCV asm implemented the different versions of
> {cmp,}xchg.
> 
> When I understood the pattern, it made sense for me to remove the
> duplications and create macros to make it easier to understand what exactly
> changes between the versions: Instruction sufixes & barriers.
> 
> [...]

Here is the summary with links:
  - [v1,1/5] riscv/cmpxchg: Deduplicate xchg() asm functions
    https://git.kernel.org/riscv/c/4bfa185fe3f0
  - [v1,2/5] riscv/cmpxchg: Deduplicate cmpxchg() asm and macros
    https://git.kernel.org/riscv/c/07a0a41cb77d
  - [v1,3/5] riscv/atomic.h : Deduplicate arch_atomic.*
    https://git.kernel.org/riscv/c/906123739272
  - [v1,4/5] riscv/cmpxchg: Implement cmpxchg for variables of size 1 and 2
    https://git.kernel.org/riscv/c/54280ca64626
  - [v1,5/5] riscv/cmpxchg: Implement xchg for variables of size 1 and 2
    https://git.kernel.org/riscv/c/a8ed2b7a2c13

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





More information about the linux-riscv mailing list