On Wednesday 10 June 2015 04:23 PM, Peter Zijlstra wrote:
> On Wed, Jun 10, 2015 at 09:17:16AM +, Vineet Gupta wrote:
>> I wanted to clarify a couple of things
>> (1) ACQUIRE barrier implies store/{store,load} while RELEASE implies
>> {load,store}/store and given what DMB provides for ARCv2,
On Wednesday 10 June 2015 04:23 PM, Peter Zijlstra wrote:
On Wed, Jun 10, 2015 at 09:17:16AM +, Vineet Gupta wrote:
I wanted to clarify a couple of things
(1) ACQUIRE barrier implies store/{store,load} while RELEASE implies
{load,store}/store and given what DMB provides for ARCv2, smp_mb()
On Wed, Jun 10, 2015 at 09:17:16AM +, Vineet Gupta wrote:
> >> --- a/arch/arc/include/asm/spinlock.h
> >> +++ b/arch/arc/include/asm/spinlock.h
> >> @@ -22,24 +22,32 @@ static inline void arch_spin_lock(arch_spinlock_t
> >> *lock)
> >> {
> >>unsigned int tmp = __ARCH_SPIN_LOCK_LOCKED__;
On Tuesday 09 June 2015 06:00 PM, Peter Zijlstra wrote:
> On Tue, Jun 09, 2015 at 05:18:18PM +0530, Vineet Gupta wrote:
>
> Please try and provide at least _some_ Changelog body.
>
>
Will do as comments in source as well as commit log in v2.
>> diff --git a/arch/arc/include/asm/spinlock.h
>>
On Wed, Jun 10, 2015 at 09:17:16AM +, Vineet Gupta wrote:
--- a/arch/arc/include/asm/spinlock.h
+++ b/arch/arc/include/asm/spinlock.h
@@ -22,24 +22,32 @@ static inline void arch_spin_lock(arch_spinlock_t
*lock)
{
unsigned int tmp = __ARCH_SPIN_LOCK_LOCKED__;
+ smp_mb();
On Tuesday 09 June 2015 06:00 PM, Peter Zijlstra wrote:
On Tue, Jun 09, 2015 at 05:18:18PM +0530, Vineet Gupta wrote:
Please try and provide at least _some_ Changelog body.
snip all atomic ops that return values
Will do as comments in source as well as commit log in v2.
diff --git
On Tue, Jun 09, 2015 at 05:18:18PM +0530, Vineet Gupta wrote:
Please try and provide at least _some_ Changelog body.
> diff --git a/arch/arc/include/asm/spinlock.h b/arch/arc/include/asm/spinlock.h
> index b6a8c2dfbe6e..8af8eaad4999 100644
> --- a/arch/arc/include/asm/spinlock.h
> +++
Cc: Paul E. McKenney
Cc: Peter Zijlstra (Intel)
Signed-off-by: Vineet Gupta
---
arch/arc/include/asm/atomic.h | 10 ++
arch/arc/include/asm/bitops.h | 12
arch/arc/include/asm/cmpxchg.h | 10 ++
arch/arc/include/asm/spinlock.h | 10 ++
4 files changed,
Cc: Paul E. McKenney paul...@linux.vnet.ibm.com
Cc: Peter Zijlstra (Intel) pet...@infradead.org
Signed-off-by: Vineet Gupta vgu...@synopsys.com
---
arch/arc/include/asm/atomic.h | 10 ++
arch/arc/include/asm/bitops.h | 12
arch/arc/include/asm/cmpxchg.h | 10 ++
On Tue, Jun 09, 2015 at 05:18:18PM +0530, Vineet Gupta wrote:
Please try and provide at least _some_ Changelog body.
snip all atomic ops that return values
diff --git a/arch/arc/include/asm/spinlock.h b/arch/arc/include/asm/spinlock.h
index b6a8c2dfbe6e..8af8eaad4999 100644
---
10 matches
Mail list logo