[PATCH 03/10] locking/alpha: Wire up local_try_cmpxchg
Uros Bizjak
ubizjak at gmail.com
Mon Mar 6 07:56:21 AEDT 2023
Implement target specific support for local_try_cmpxchg.
Cc: Richard Henderson <richard.henderson at linaro.org>
Cc: Ivan Kokshaysky <ink at jurassic.park.msu.ru>
Cc: Matt Turner <mattst88 at gmail.com>
Signed-off-by: Uros Bizjak <ubizjak at gmail.com>
---
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
More information about the Linuxppc-dev
mailing list