Re: [PATCH v2 1/5] csky: Remove custom asm/atomic.h implementation

2021-01-20 Thread Guo Ren
Hi Peter, On Thu, Jan 7, 2021 at 7:19 PM Peter Zijlstra wrote: > > On Sun, Dec 20, 2020 at 03:39:19PM +, guo...@kernel.org wrote: > > From: Guo Ren > > > > Use generic atomic implementation based on cmpxchg. So remove csky > > asm/atomic.h. > > Clarification would be good. Typically cmpxchg(

Re: [PATCH v2 1/5] csky: Remove custom asm/atomic.h implementation

2021-01-07 Thread Peter Zijlstra
On Sun, Dec 20, 2020 at 03:39:19PM +, guo...@kernel.org wrote: > From: Guo Ren > > Use generic atomic implementation based on cmpxchg. So remove csky > asm/atomic.h. Clarification would be good. Typically cmpxchg() loops perform sub-optimal on LL/SC architectures, due to the double loop cons

[PATCH v2 1/5] csky: Remove custom asm/atomic.h implementation

2020-12-20 Thread guoren
From: Guo Ren Use generic atomic implementation based on cmpxchg. So remove csky asm/atomic.h. Signed-off-by: Guo Ren Cc: Peter Zijlstra Cc: Arnd Bergmann Cc: Paul E. McKenney --- arch/csky/include/asm/atomic.h | 212 - 1 file changed, 212 deletions(-

[PATCH v2 1/5] csky: Remove custom asm/atomic.h implementation

2020-12-20 Thread guoren
From: Guo Ren Use generic atomic implementation based on cmpxchg. So remove csky asm/atomic.h. Signed-off-by: Guo Ren Cc: Peter Zijlstra Cc: Arnd Bergmann Cc: Paul E. McKenney --- arch/csky/include/asm/atomic.h | 212 - 1 file changed, 212 deletions(-