From: Peter Zijlstra Date: Sun, 23 Mar 2014 15:29:31 +0000 (+0100) Subject: locking,arch,arc: Fold atomic_ops X-Git-Tag: fixes-against-v3.18-rc2~102^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7d11e93ee97a37da1947b7c4e1794705a6f360c;p=pandora-kernel.git 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 Cc: Linus Torvalds Cc: Paul E. McKenney Cc: Vineet Gupta Link: http://lkml.kernel.org/r/20140508135851.886055622@infradead.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed