Files
ack-tegra/include/linux
Peter Zijlstra febdbfe8a9 arch: Prepare for smp_mb__{before,after}_atomic()
Since the smp_mb__{before,after}*() ops are fundamentally dependent on
how an arch can implement atomics it doesn't make sense to have 3
variants of them. They must all be the same.

Furthermore, the 3 variants suggest they're only valid for those 3
atomic ops, while we have many more where they could be applied.

So move away from
smp_mb__{before,after}_{atomic,clear}_{dec,inc,bit}() and reduce the
interface to just the two: smp_mb__{before,after}_atomic().

This patch prepares the way by introducing default implementations in
asm-generic/barrier.h that default to a full barrier and providing
__deprecated inlines for the previous 6 barriers if they're not
provided by the arch.

This should allow for a mostly painless transition (lots of deprecated
warns in the interim).

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/n/tip-wr59327qdyi9mbzn6x937s4e@git.kernel.org
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: "Chen, Gong" <gong.chen@linux.intel.com>
Cc: John Sullivan <jsrhbz@kanargh.force9.co.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: linux-arch@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2014-04-18 11:40:30 +02:00
..
2014-03-28 20:42:01 +01:00
2014-03-28 16:29:35 -04:00
2014-01-24 22:39:54 +01:00
2013-07-30 11:53:12 -04:00
2011-03-11 14:25:50 +00:00
2011-08-03 11:30:42 -04:00
2008-06-06 11:29:10 -07:00
2013-11-15 09:32:21 +09:00
2014-03-11 11:52:47 +01:00
2014-04-03 16:20:58 -07:00
2014-04-01 17:08:43 +02:00
2007-02-09 17:39:36 -05:00
2013-05-07 18:38:27 -07:00
2014-04-01 23:19:14 -04:00
2014-03-10 11:44:42 -04:00
2014-03-11 22:52:43 -04:00
2009-06-18 13:04:05 -07:00
2014-03-10 17:26:19 -07:00
2014-03-04 07:55:47 -08:00
2014-04-07 16:36:07 -07:00
2008-08-02 18:36:10 +01:00
2014-03-07 11:41:32 -05:00
2012-03-20 12:47:48 +01:00
2014-04-17 12:30:40 -07:00
2014-03-13 12:11:00 +10:30
2011-01-24 14:45:11 +10:30
2014-04-03 16:20:50 -07:00
2013-04-30 17:04:06 -07:00
2011-09-16 19:20:20 -04:00
2014-02-28 15:36:37 -08:00
2014-04-01 23:19:08 -04:00
2014-03-04 13:51:06 -05:00
2014-04-01 23:19:10 -04:00
2013-10-14 17:15:48 +02:00
2014-03-17 15:14:16 -04:00
2014-03-17 15:15:21 -04:00
2014-04-07 10:59:19 -07:00
2014-04-03 16:21:04 -07:00
2014-03-19 15:11:19 -06:00
2014-03-19 22:24:08 -04:00
2014-03-09 19:53:45 +01:00
2013-06-17 16:38:57 -07:00
2014-04-01 17:08:43 +02:00
2013-09-10 18:56:32 -04:00
2005-04-16 15:20:36 -07:00
2012-08-21 16:28:31 +02:00
2010-11-29 08:55:25 +11:00
2014-04-07 16:35:53 -07:00
2014-04-07 11:24:06 -07:00