Re: [PATCH v2 2/5] locking/generic: Wire up local{,64}_try_cmpxchg

2023-04-11 Thread Mark Rutland
On Wed, Apr 05, 2023 at 04:17:07PM +0200, Uros Bizjak wrote: > Implement generic support for local{,64}_try_cmpxchg. > > Redirect to the atomic_ family of functions when the target > does not provide its own local.h definitions. > > For 64-bit targets, implement local64_try_cmpxchg and >

[PATCH v2 2/5] locking/generic: Wire up local{,64}_try_cmpxchg

2023-04-05 Thread Uros Bizjak
Implement generic support for local{,64}_try_cmpxchg. Redirect to the atomic_ family of functions when the target does not provide its own local.h definitions. For 64-bit targets, implement local64_try_cmpxchg and local64_cmpxchg using typed C wrappers that call local_ family of functions and