From: Peter Zijlstra Date: Wed, 26 Mar 2014 17:12:45 +0000 (+0100) Subject: locking,arch,sh: Fold atomic_ops X-Git-Tag: fixes-against-v3.18-rc2~102^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6470150dff9aff682063890c9b8eac71b695def;p=pandora-kernel.git locking,arch,sh: 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: linux-sh@vger.kernel.org Link: http://lkml.kernel.org/r/20140508135852.770036493@infradead.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed