diff options
author | Will Deacon <will.deacon@arm.com> | 2014-02-04 07:29:13 -0500 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2014-02-07 11:46:07 -0500 |
commit | 95c4189689f92fba7ecf9097173404d4928c6e9b (patch) | |
tree | a2abbb0b084fab81afc4f87ebe809bf03ffade12 /arch/arm64/include/asm/futex.h | |
parent | 8e86f0b409a44193f1587e87b69c5dcf8f65be67 (diff) |
arm64: asm: remove redundant "cc" clobbers
cbnz/tbnz don't update the condition flags, so remove the "cc" clobbers
from inline asm blocks that only use these instructions to implement
conditional branches.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/futex.h')
-rw-r--r-- | arch/arm64/include/asm/futex.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/include/asm/futex.h b/arch/arm64/include/asm/futex.h index 572193d0005d..5f750dc96e0f 100644 --- a/arch/arm64/include/asm/futex.h +++ b/arch/arm64/include/asm/futex.h | |||
@@ -41,7 +41,7 @@ | |||
41 | " .popsection\n" \ | 41 | " .popsection\n" \ |
42 | : "=&r" (ret), "=&r" (oldval), "+Q" (*uaddr), "=&r" (tmp) \ | 42 | : "=&r" (ret), "=&r" (oldval), "+Q" (*uaddr), "=&r" (tmp) \ |
43 | : "r" (oparg), "Ir" (-EFAULT) \ | 43 | : "r" (oparg), "Ir" (-EFAULT) \ |
44 | : "cc", "memory") | 44 | : "memory") |
45 | 45 | ||
46 | static inline int | 46 | static inline int |
47 | futex_atomic_op_inuser (int encoded_op, u32 __user *uaddr) | 47 | futex_atomic_op_inuser (int encoded_op, u32 __user *uaddr) |
@@ -129,7 +129,7 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, | |||
129 | " .popsection\n" | 129 | " .popsection\n" |
130 | : "+r" (ret), "=&r" (val), "+Q" (*uaddr), "=&r" (tmp) | 130 | : "+r" (ret), "=&r" (val), "+Q" (*uaddr), "=&r" (tmp) |
131 | : "r" (oldval), "r" (newval), "Ir" (-EFAULT) | 131 | : "r" (oldval), "r" (newval), "Ir" (-EFAULT) |
132 | : "cc", "memory"); | 132 | : "memory"); |
133 | 133 | ||
134 | *uval = val; | 134 | *uval = val; |
135 | return ret; | 135 | return ret; |