diff options
author | Mark Rutland <mark.rutland@arm.com> | 2021-07-13 11:52:50 +0100 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-07-16 18:46:44 +0200 |
commit | f3e615b4db1fb7034f1d76dc307b77cc848f040e (patch) | |
tree | 131fa0f8061d0faae81132f964e4e929a1ad4759 /scripts/atomic/fallbacks/try_cmpxchg | |
parent | 47401d94947d507ff9f33fccf490baf47638fb69 (diff) | |
download | linux-f3e615b4db1fb7034f1d76dc307b77cc848f040e.tar.gz linux-f3e615b4db1fb7034f1d76dc307b77cc848f040e.tar.bz2 linux-f3e615b4db1fb7034f1d76dc307b77cc848f040e.zip |
locking/atomic: remove ARCH_ATOMIC remanants
Now that gen-atomic-fallback.sh is only used to generate the arch_*
fallbacks, we don't need to also generate the non-arch_* forms, and can
removethe infrastructure this needed.
There is no change to any of the generated headers as a result of this
patch.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210713105253.7615-3-mark.rutland@arm.com
Diffstat (limited to 'scripts/atomic/fallbacks/try_cmpxchg')
-rwxr-xr-x | scripts/atomic/fallbacks/try_cmpxchg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/atomic/fallbacks/try_cmpxchg b/scripts/atomic/fallbacks/try_cmpxchg index 06db0f738e45..890f850ede37 100755 --- a/scripts/atomic/fallbacks/try_cmpxchg +++ b/scripts/atomic/fallbacks/try_cmpxchg @@ -1,9 +1,9 @@ cat <<EOF static __always_inline bool -${arch}${atomic}_try_cmpxchg${order}(${atomic}_t *v, ${int} *old, ${int} new) +arch_${atomic}_try_cmpxchg${order}(${atomic}_t *v, ${int} *old, ${int} new) { ${int} r, o = *old; - r = ${arch}${atomic}_cmpxchg${order}(v, o, new); + r = arch_${atomic}_cmpxchg${order}(v, o, new); if (unlikely(r != o)) *old = r; return likely(r == o); |