Hi Peter,
On Thu, Jan 7, 2021 at 8:41 PM Peter Zijlstra wrote:
>
> On Sun, Dec 20, 2020 at 03:39:22PM +, guo...@kernel.org wrote:
>
>
> > +#define cmpxchg(ptr, o, n) \
> > +({ \
> > + __typeof__(*(
On Sun, Dec 20, 2020 at 03:39:22PM +, guo...@kernel.org wrote:
> +#define cmpxchg(ptr, o, n) \
> +({ \
> + __typeof__(*(ptr)) __ret; \
> + __smp_release_fence();
From: Guo Ren
Optimize the performance of cmpxchg by using more fine-grained
acquire/release barriers.
Signed-off-by: Guo Ren
Cc: Peter Zijlstra
Cc: Arnd Bergmann
Cc: Paul E. McKenney
---
arch/csky/include/asm/cmpxchg.h | 27 +--
1 file changed, 17 insertions(+), 10
3 matches
Mail list logo