powerpc: reuse asm-generic/barrier.h
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 21 Dec 2015 07:22:18 +0000 (09:22 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 12 Jan 2016 18:46:48 +0000 (20:46 +0200)
commitfbd7ec02363cee4264aca2cc46692c9322fd6b42
tree5b85c14b8492eb1c72d3c50c3cb97eee77bb52d9
parent53a05ac15ee04b56ce02f0f831556e2fcdcce93f
powerpc: reuse asm-generic/barrier.h

On powerpc read_barrier_depends, smp_read_barrier_depends
smp_store_mb(), smp_mb__before_atomic and smp_mb__after_atomic match the
asm-generic variants exactly. Drop the local definitions and pull in
asm-generic/barrier.h instead.

This is in preparation to refactoring this code area.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
arch/powerpc/include/asm/barrier.h