Subject: [PATCH 03/10] locking/alpha: Wire up local_try_cmpxchg

From: Uros Bizjak <[email-masked]>
Date: Sun, 5 Mar 2023 21:56:21 +0100

Implement target specific support for local_try_cmpxchg.

Cc: Richard Henderson <[email-masked]>
Cc: Ivan Kokshaysky <[email-masked]>
Cc: Matt Turner <[email-masked]>
Signed-off-by: Uros Bizjak <[email-masked]>
---
 arch/alpha/include/asm/local.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/alpha/include/asm/local.h b/arch/alpha/include/asm/local.h
index fab26a1c93d5..7eef027e0dde 100644
--- a/arch/alpha/include/asm/local.h
+++ b/arch/alpha/include/asm/local.h
@@ -54,6 +54,8 @@ static __inline__ long local_sub_return(long i, local_t * l)
 
 #define local_cmpxchg(l, o, n) \
 	(cmpxchg_local(&((l)->a.counter), (o), (n)))
+#define local_try_cmpxchg(l, po, n) \
+	(try_cmpxchg_local(&((l)->a.counter), (po), (n)))
 #define local_xchg(l, n) (xchg_local(&((l)->a.counter), (n)))
 
 /**
-- 
2.39.2