Re: [committed] Use __kernel_cmpxchg for __sync_lock_release

2014-07-19 Thread Ramana Radhakrishnan
On Fri, Jul 18, 2014 at 12:28 PM, Mikael Pettersson wrote: > John David Anglin writes: > > Because the atomic sync functions in config/pa/linux-atomic.c are not > > lock free, we need to use > > __kernel_cmpxchg for the __sync_lock_release. This was found in > > glibc's pthread_spin_unlock >

Re: [committed] Use __kernel_cmpxchg for __sync_lock_release

2014-07-18 Thread John David Anglin
On 7/18/2014 7:28 AM, Mikael Pettersson wrote: John David Anglin writes: > Because the atomic sync functions in config/pa/linux-atomic.c are not > lock free, we need to use > __kernel_cmpxchg for the __sync_lock_release. This was found in > glibc's pthread_spin_unlock > implementation.

Re: [committed] Use __kernel_cmpxchg for __sync_lock_release

2014-07-18 Thread Mikael Pettersson
John David Anglin writes: > Because the atomic sync functions in config/pa/linux-atomic.c are not > lock free, we need to use > __kernel_cmpxchg for the __sync_lock_release. This was found in > glibc's pthread_spin_unlock > implementation. > > Tested on hppa-unknown-linux-gnu. Committ

[committed] Use __kernel_cmpxchg for __sync_lock_release

2014-07-17 Thread John David Anglin
Because the atomic sync functions in config/pa/linux-atomic.c are not lock free, we need to use __kernel_cmpxchg for the __sync_lock_release. This was found in glibc's pthread_spin_unlock implementation. Tested on hppa-unknown-linux-gnu. Committed to trunk. Dave -- John David Anglin