diff options
| author | Paul Burton <paul.burton@mips.com> | 2019-10-01 21:53:24 +0000 |
|---|---|---|
| committer | Paul Burton <paul.burton@mips.com> | 2019-10-07 09:42:36 -0700 |
| commit | 1da7bce8591d58bf2a442b0324659af7390401c2 (patch) | |
| tree | 08dffcb248f3d595cc978b8b2fac39db31a0db2d /tools/perf/scripts/python | |
| parent | MIPS: atomic: Unify 32b & 64b sub_if_positive (diff) | |
| download | linux-1da7bce8591d58bf2a442b0324659af7390401c2.tar.gz linux-1da7bce8591d58bf2a442b0324659af7390401c2.zip | |
MIPS: atomic: Deduplicate 32b & 64b read, set, xchg, cmpxchg
Remove the remaining duplication between 32b & 64b in asm/atomic.h by
making use of an ATOMIC_OPS() macro to generate:
- atomic_read()/atomic64_read()
- atomic_set()/atomic64_set()
- atomic_cmpxchg()/atomic64_cmpxchg()
- atomic_xchg()/atomic64_xchg()
This is consistent with the way all other functions in asm/atomic.h are
generated, and ensures consistency between the 32b & 64b functions.
Of note is that this results in the above now being static inline
functions rather than macros.
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Cc: Huacai Chen <chenhc@lemote.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: linux-kernel@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
