[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230305205628.27385-6-ubizjak@gmail.com>
Date: Sun, 5 Mar 2023 21:56:23 +0100
From: Uros Bizjak <ubizjak@...il.com>
To: linux-alpha@...r.kernel.org, linux-kernel@...r.kernel.org,
loongarch@...ts.linux.dev, linux-mips@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org, linux-arch@...r.kernel.org,
linux-perf-users@...r.kernel.org
Cc: Uros Bizjak <ubizjak@...il.com>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Subject: [PATCH 05/10] locking/mips: Wire up local_try_cmpxchg
Implement target specific support for local_try_cmpxchg.
Cc: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Signed-off-by: Uros Bizjak <ubizjak@...il.com>
---
arch/mips/include/asm/local.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/mips/include/asm/local.h b/arch/mips/include/asm/local.h
index 08366b1fd273..b611361a760b 100644
--- a/arch/mips/include/asm/local.h
+++ b/arch/mips/include/asm/local.h
@@ -96,6 +96,8 @@ static __inline__ long local_sub_return(long i, local_t * l)
#define local_cmpxchg(l, o, n) \
((long)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) (atomic_long_xchg((&(l)->a), (n)))
/**
--
2.39.2
Powered by blists - more mailing lists