locking,arch,metag: Fold atomic_ops
authorPeter Zijlstra <peterz@infradead.org>
Sun, 23 Mar 2014 18:08:25 +0000 (19:08 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 14 Aug 2014 10:48:09 +0000 (12:48 +0200)
commitd6dfe2509da935a15583cace7cd3837b1e8addef
treed36ac9c387b35d26114fabfaf5dd3dcff4f38112
parentd839bae4269aea46bff4133066a411cfba5c7c46
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>
arch/metag/include/asm/atomic_lnkget.h
arch/metag/include/asm/atomic_lock1.h