]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Documentation/atomic_t: Document cmpxchg() vs try_cmpxchg()
authorPeter Zijlstra <peterz@infradead.org>
Mon, 5 Jul 2021 15:00:24 +0000 (17:00 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 7 Jul 2021 11:53:25 +0000 (13:53 +0200)
commitd1bbfd0c7c9f985e57795a7e0cefc209ebf689c0
tree58385a9487e3650dbadc7acf305e6dbe60d7b298
parente6b4457b05f36bb9e371f29ab1dd2d97272a1540
Documentation/atomic_t: Document cmpxchg() vs try_cmpxchg()

There seems to be a significant amount of confusion around the new
try_cmpxchg(), despite this being more like the C11
atomic_compare_exchange_*() family. Add a few words of clarification
on how cmpxchg() and try_cmpxchg() relate to one another.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lkml.kernel.org/r/YOMgPeMOmmiK3tXO@hirez.programming.kicks-ass.net
Documentation/atomic_t.txt