asm-generic: guard smp_store_release/load_acquire
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 27 Dec 2015 12:10:52 +0000 (14:10 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 12 Jan 2016 18:46:46 +0000 (20:46 +0200)
commit57f7c0370f386d5e0960e25d2c3ceb0b8e8c489d
tree67ca06dd81773d44151edf8a0b6a56d29bedef6a
parent5a1b26d7c629915446222ebe77d16567c98426ff
asm-generic: guard smp_store_release/load_acquire

Allow architectures to override smp_store_release
and smp_load_acquire by guarding the defines
in asm-generic/barrier.h with ifndef directives.

This is in preparation to reusing asm-generic/barrier.h
on architectures which have their own definition
of these macros.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
include/asm-generic/barrier.h