From: Peter Zijlstra Date: Sun, 23 Mar 2014 17:19:25 +0000 (+0100) Subject: locking,arch,cris: Fold atomic_ops X-Git-Tag: fixes-against-v3.18-rc2~102^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7179e30ef66a5bae91592ae7fbacf3df6c627dd6;p=pandora-kernel.git locking,arch,cris: 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 Acked-by: Jesper Nilsson Cc: Geert Uytterhoeven Cc: Linus Torvalds Cc: Mikael Starvik Cc: Paul E. McKenney Cc: linux-cris-kernel@axis.com Link: http://lkml.kernel.org/r/20140508135852.104572724@infradead.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed