diff options
author | Guo Ren <[email protected]> | 2022-04-06 20:47:52 +0800 |
---|---|---|
committer | Guo Ren <[email protected]> | 2022-04-25 13:51:42 +0800 |
commit | 6b160e0513e9f0b0c0b7ff4d5b964822d1750ce9 (patch) | |
tree | 54bdf2974e9db25c8ee81426ead58fda082641cb /lib/mpi/mpi-sub-ui.c | |
parent | 186f69b64c80a594337211e8238e44a3863e9d94 (diff) |
csky: atomic: Add custom atomic.h implementation
The generic atomic.h used cmpxchg to implement the atomic
operations, it will cause daul loop to reduce the forward
guarantee. The patch implement csky custom atomic operations with
ldex/stex instructions for the best performance.
Important comment by Rutland:
8e86f0b409a4 ("arm64: atomics: fix use of acquire + release for
full barrier semantics")
Link: https://lore.kernel.org/linux-riscv/CAJF2gTSAxpAi=LbAdu7jntZRUa=-dJwL0VfmDfBV5MHB=rcZ-w@mail.gmail.com/T/#m27a0f1342995deae49ce1d0e1f2683f8a181d6c3
Signed-off-by: Guo Ren <[email protected]>
Signed-off-by: Guo Ren <[email protected]>
Cc: Mark Rutland <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions