diff options
author | Peter Zijlstra <peterz@infradead.org> | 2014-03-23 19:08:25 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-08-14 12:48:09 +0200 |
commit | d6dfe2509da935a15583cace7cd3837b1e8addef (patch) | |
tree | d36ac9c387b35d26114fabfaf5dd3dcff4f38112 /arch/mips/include/asm/atomic.h | |
parent | locking,arch,m68k: Fold atomic_ops (diff) | |
download | linux-d6dfe2509da935a15583cace7cd3837b1e8addef.tar.xz linux-d6dfe2509da935a15583cace7cd3837b1e8addef.zip |
locking,arch,metag: 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 <peterz@infradead.org>
Acked-by: James Hogan <james.hogan@imgtec.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-metag@vger.kernel.org
Link: http://lkml.kernel.org/r/20140508135852.453864110@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/mips/include/asm/atomic.h')
0 files changed, 0 insertions, 0 deletions