Skip to content
Unverified Commit 9d0593da authored by Davidlohr Bueso's avatar Davidlohr Bueso Committed by Palmer Dabbelt
Browse files

riscv/futex: Optimize atomic cmpxchg



Remove redundant release/acquire barriers, optimizing the lr/sc sequence
to provide conditional RCsc synchronization, per the RVWMO.

Signed-off-by: default avatarDavidlohr Bueso <dave@stgolabs.net>
Reviewed-by: default avatarAndrea Parri <parri.andrea@gmail.com>
Link: https://lore.kernel.org/r/20241113183321.491113-1-dave@stgolabs.net


Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 0207244e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment