Re: [PATCH v2] ARC: Improve cmpxchg syscall implementation

2018-06-25 Thread Vineet Gupta
On 06/25/2018 02:11 PM, Alexey Brodkin wrote: >> OK ? > Sure, care to update the commit log or want me to resend? I've fixed this up locally and removed a bunch of compile warnings as well. -Vineet ___ linux-snps-arc mailing list linux-snps-arc@lists.i

Re: [PATCH v2] ARC: Improve cmpxchg syscall implementation

2018-06-25 Thread Alexey Brodkin
Hi Vineet, On Mon, 2018-06-25 at 13:03 -0700, Vineet Gupta wrote: > On 06/19/2018 07:22 AM, Alexey Brodkin wrote: > > From: Peter Zijlstra > > > > arc_usr_cmpxchg syscall is supposed to be used on platforms > > that lack support of Load-Locked/Store-Conditional instructions > > in hardware. And

Re: [PATCH v2] ARC: Improve cmpxchg syscall implementation

2018-06-25 Thread Vineet Gupta
On 06/19/2018 07:22 AM, Alexey Brodkin wrote: > From: Peter Zijlstra > > arc_usr_cmpxchg syscall is supposed to be used on platforms > that lack support of Load-Locked/Store-Conditional instructions > in hardware. And in that case we mimic missing hardware features > with help of kernel's sycall t

[PATCH v2] ARC: Improve cmpxchg syscall implementation

2018-06-19 Thread Alexey Brodkin
From: Peter Zijlstra arc_usr_cmpxchg syscall is supposed to be used on platforms that lack support of Load-Locked/Store-Conditional instructions in hardware. And in that case we mimic missing hardware features with help of kernel's sycall that "atomically" checks current value in memory and then