diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2024-07-01 18:04:56 +0300 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2024-07-10 20:50:44 +0300 |
commit | f2ed8367bfa55a2ad3adfe7a59b79b82905df740 (patch) | |
tree | add20aa2ffb5380847eba02fcd9bc0155272de58 /arch/s390/include/asm | |
parent | 4a39f12e753d35682a473b2edb4581b65b958d92 (diff) | |
download | linux-f2ed8367bfa55a2ad3adfe7a59b79b82905df740.tar.xz |
s390/atomic_ops: Use symbolic names
Consistently use symbolic names in all atomic ops inline assemblies.
Reviewed-by: Juergen Christ <jchrist@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm')
-rw-r--r-- | arch/s390/include/asm/atomic_ops.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/s390/include/asm/atomic_ops.h b/arch/s390/include/asm/atomic_ops.h index 7fa5f96a553a..7f47e2927804 100644 --- a/arch/s390/include/asm/atomic_ops.h +++ b/arch/s390/include/asm/atomic_ops.h @@ -13,16 +13,16 @@ static __always_inline int __atomic_read(const atomic_t *v) int c; asm volatile( - " l %0,%1\n" - : "=d" (c) : "R" (v->counter)); + " l %[c],%[counter]\n" + : [c] "=d" (c) : [counter] "R" (v->counter)); return c; } static __always_inline void __atomic_set(atomic_t *v, int i) { asm volatile( - " st %1,%0\n" - : "=R" (v->counter) : "d" (i)); + " st %[i],%[counter]\n" + : [counter] "=R" (v->counter) : [i] "d" (i)); } static __always_inline s64 __atomic64_read(const atomic64_t *v) @@ -30,16 +30,16 @@ static __always_inline s64 __atomic64_read(const atomic64_t *v) s64 c; asm volatile( - " lg %0,%1\n" - : "=d" (c) : "RT" (v->counter)); + " lg %[c],%[counter]\n" + : [c] "=d" (c) : [counter] "RT" (v->counter)); return c; } static __always_inline void __atomic64_set(atomic64_t *v, s64 i) { asm volatile( - " stg %1,%0\n" - : "=RT" (v->counter) : "d" (i)); + " stg %[i],%[counter]\n" + : [counter] "=RT" (v->counter) : [i] "d" (i)); } #ifdef CONFIG_HAVE_MARCH_Z196_FEATURES |