aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/futex.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2014-02-04 07:29:13 -0500
committerCatalin Marinas <catalin.marinas@arm.com>2014-02-07 11:46:07 -0500
commit95c4189689f92fba7ecf9097173404d4928c6e9b (patch)
treea2abbb0b084fab81afc4f87ebe809bf03ffade12 /arch/arm64/include/asm/futex.h
parent8e86f0b409a44193f1587e87b69c5dcf8f65be67 (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.h4
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
46static inline int 46static inline int
47futex_atomic_op_inuser (int encoded_op, u32 __user *uaddr) 47futex_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;