locking/barriers: Move smp_cond_load_acquire() to asm-generic/barrier.h
authorPeter Zijlstra <peterz@infradead.org>
Wed, 1 Jun 2016 17:23:54 +0000 (19:23 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 14 Jun 2016 09:55:14 +0000 (11:55 +0200)
commit7cb45c0fe9858f92cc264f6bf9d2f6a0e7d3b249
treef429581d6b993e303a297a461d06cd0dad58ea68
parent33ac279677dcc2441cb93d8cb9cf7a74df62814d
locking/barriers: Move smp_cond_load_acquire() to asm-generic/barrier.h

Since all asm/barrier.h should/must include asm-generic/barrier.h the
latter is a good place for generic infrastructure like this.

This also allows archs to override the new smp_acquire__after_ctrl_dep().

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/asm-generic/barrier.h
include/linux/compiler.h