Peter Zijlstra 560cb12a40 locking,arch: Rewrite generic atomic support
Rewrite generic atomic support to only require cmpxchg(), generate all
other primitives from that.

Furthermore reduce the endless repetition for all these primitives to
a few CPP macros. This way we get more for less lines.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20140508135852.940119622@infradead.org
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: David Howells <dhowells@redhat.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-arch@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2014-08-14 12:48:14 +02:00
..
2014-06-23 14:12:01 -04:00
2013-09-10 13:03:41 -07:00
2011-03-11 14:25:50 +00:00
2014-06-04 16:54:19 -07:00
2011-10-29 21:20:22 +02:00
2011-03-31 11:26:23 -03:00
2014-05-24 07:28:01 +09:00
2014-04-30 19:49:37 +01:00
2012-10-06 03:04:57 +09:00
2014-05-05 09:09:14 +02:00
2014-05-05 09:09:14 +02:00
2014-05-05 09:09:14 +02:00
2013-06-18 13:48:45 +02:00
2012-07-30 17:25:16 -07:00
2012-01-31 23:19:47 +02:00
2013-04-29 18:28:42 -07:00