Peter Zijlstra
f7d11e93ee
locking,arch,arc: Fold atomic_ops
...
Many of the atomic op implementations are the same except for one
instruction; fold the lot into a few CPP macros and reduce LoC.
This also prepares for easy addition of new ops.
Signed-off-by: Peter Zijlstra <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Paul E. McKenney <[email protected] >
Cc: Vineet Gupta <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2014-08-14 12:48:03 +02:00
Peter Zijlstra
d594ffa94b
arch,arc: Convert smp_mb__*()
...
The arc mb() implementation is a compiler barrier(), therefore it all
doesn't matter one way or the other. Simply remove the existing
definitions and use whatever is generated by the defaults.
Signed-off-by: Peter Zijlstra <[email protected] >
Acked-by: Paul E. McKenney <[email protected] >
Link: http://lkml.kernel.org/n/[email protected]
Cc: Linus Torvalds <[email protected] >
Cc: Vineet Gupta <[email protected] >
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2014-04-18 11:40:31 +02:00
Peter Zijlstra
1de7da377b
arch: Move smp_mb__{before,after}_atomic_{inc,dec}.h into asm/atomic.h
...
Move the barriers functions that depend on the atomic implementation
into the atomic implementation.
Reviewed-by: Paul E. McKenney <[email protected] >
Signed-off-by: Peter Zijlstra <[email protected] >
Acked-by: Vineet Gupta <[email protected] > [for arch/arc bits]
Cc: Peter Zijlstra <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Andrew Morton <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: Paul E. McKenney <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2014-01-12 10:37:14 +01:00
Vineet Gupta
14e968bad7
ARC: Atomic/bitops/cmpxchg/barriers
...
This covers the UP / SMP (with no hardware assist for atomic r-m-w) as
well as ARC700 LLOCK/SCOND insns based.
Signed-off-by: Vineet Gupta <[email protected] >
2013-02-11 20:00:30 +05:30