diff options
author | Peter Zijlstra <peterz@infradead.org> | 2014-04-09 23:51:29 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-08-14 14:48:05 +0400 |
commit | d325209b6000dcd13404ee946d2292e15a56718c (patch) | |
tree | 9adc93bd2a6a2b2f69c2b2034603c1c619106d4a /arch/cris | |
parent | 92ba1f530b4f90db78eb45f4b6598e75939146bd (diff) | |
download | linux-d325209b6000dcd13404ee946d2292e15a56718c.tar.xz |
locking,arch,avr32: 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.
Requires the asm_op because of eor.
AVR32 is a bit special in that its ADD/SUB instructions are not
symmetric. Its SUB instruction allows for an 21bit immediate.
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/20140531141445.GD16155@laptop.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/cris')
0 files changed, 0 insertions, 0 deletions