diff options
| author | Leonardo Bras <[email protected]> | 2024-01-03 16:32:00 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2024-04-08 17:52:03 +0000 |
| commit | 07a0a41cb77d582e4db05bd9e79daa145d5d6ea4 (patch) | |
| tree | 921f96fae5b2401ac324f0dcbcf04f1b08bbb05c /scripts/generate_rust_target.rs | |
| parent | riscv/cmpxchg: Deduplicate xchg() asm functions (diff) | |
| download | kernel-07a0a41cb77d582e4db05bd9e79daa145d5d6ea4.tar.gz kernel-07a0a41cb77d582e4db05bd9e79daa145d5d6ea4.zip | |
riscv/cmpxchg: Deduplicate cmpxchg() asm and macros
In this header every cmpxchg 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_cmpxchg* generation
(This did not cause any change in generated asm)
Signed-off-by: Leonardo Bras <[email protected]>
Reviewed-by: Guo Ren <[email protected]>
Reviewed-by: Andrea Parri <[email protected]>
Tested-by: Guo Ren <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
