diff options
author | Alexandre Ghiti <alexghiti@rivosinc.com> | 2024-05-30 17:55:46 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2024-05-30 19:43:14 +0300 |
commit | 1d84afaf02524d2558e8ca3ca169be2ef720380b (patch) | |
tree | 2beb818750ca19a1ee3093832f2105d03b1b9efc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 982a7eb97be685d1129c06671aed4c26d6919af4 (diff) | |
download | linux-1d84afaf02524d2558e8ca3ca169be2ef720380b.tar.xz |
riscv: Fix fully ordered LR/SC xchg[8|16]() implementations
The fully ordered versions of xchg[8|16]() using LR/SC lack the
necessary memory barriers to guarantee the order.
Fix this by matching what is already implemented in the fully ordered
versions of cmpxchg() using LR/SC.
Suggested-by: Andrea Parri <parri.andrea@gmail.com>
Reported-by: Andrea Parri <parri.andrea@gmail.com>
Closes: https://lore.kernel.org/linux-riscv/ZlYbupL5XgzgA0MX@andrea/T/#u
Fixes: a8ed2b7a2c13 ("riscv/cmpxchg: Implement xchg for variables of size 1 and 2")
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Andrea Parri <parri.andrea@gmail.com>
Link: https://lore.kernel.org/r/20240530145546.394248-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions