Peter Zijlstra 4f3316c2b5 locking,arch,sparc: 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: David S. Miller <davem@davemloft.net>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Kirill Tkhai <tkhai@yandex.ru>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: sparclinux@vger.kernel.org
Link: http://lkml.kernel.org/r/20140508135852.825281379@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2014-08-14 12:48:13 +02:00
..
2013-02-17 23:36:56 -05:00
2014-05-18 19:01:30 -07:00
2014-04-29 01:12:25 -04:00
2014-05-18 19:01:29 -07:00
2012-07-26 16:46:15 -07:00
2014-05-18 19:01:31 -07:00
2013-10-02 20:02:35 -04:00
2014-05-02 01:30:21 -04:00
2014-05-18 19:01:29 -07:00
2013-11-13 12:09:05 +09:00
2014-05-18 19:01:27 -07:00
2012-08-18 23:26:19 -07:00
2013-02-17 23:36:56 -05:00
2013-06-13 22:12:14 +01:00
2012-03-28 18:30:03 +01:00
2013-07-31 19:10:03 -07:00
2014-08-14 12:48:13 +02:00
2014-07-21 22:27:56 -07:00
2014-07-21 22:27:56 -07:00
2014-07-21 22:27:56 -07:00