diff options
author | 2024-01-03 13:31:59 -0300 | |
---|---|---|
committer | 2024-04-08 10:52:03 -0700 | |
commit | 4bfa185fe3f0b20ebb6e7224dae771fcb657f260 (patch) | |
tree | 462d919e162e6087bd79c462aff11b0d737a30fa /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 6.8-rc1 (diff) | |
download | wireguard-linux-4bfa185fe3f0b20ebb6e7224dae771fcb657f260.tar.xz wireguard-linux-4bfa185fe3f0b20ebb6e7224dae771fcb657f260.zip |
riscv/cmpxchg: Deduplicate xchg() asm functions
In this header every xchg define (_relaxed, _acquire, _release, vanilla)
contain it's own asm file, both for 4-byte variables an 8-byte variables,
on a total of 8 versions of mostly the same asm.
This is usually bad, as it means any change may be done in up to 8
different places.
Unify those versions by creating a new define with enough parameters to
generate any version of the previous 8.
Then unify the result under a more general define, and simplify
arch_xchg* generation.
(This did not cause any change in generated asm)
Signed-off-by: Leonardo Bras <leobras@redhat.com>
Reviewed-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Andrea Parri <parri.andrea@gmail.com>
Tested-by: Guo Ren <guoren@kernel.org>
Link: https://lore.kernel.org/r/20240103163203.72768-3-leobras@redhat.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