diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2015-12-27 13:04:42 (GMT) |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-01-12 18:46:58 (GMT) |
commit | d39886a7d31e0182f8b7e3b0e953e636b0af96fd (patch) | |
tree | 5d12bbaf8c9c4cd5bc19a1a5e99419110e15be33 | |
parent | 45d9b859411cb6d4dccc4e488336160acf9a6df5 (diff) | |
download | linux-d39886a7d31e0182f8b7e3b0e953e636b0af96fd.tar.xz |
tile: define __smp_xxx
This defines __smp_xxx barriers for tile,
for use by virtualization.
Some smp_xxx barriers are removed as they are
defined correctly by asm-generic/barriers.h
Note: for 32 bit, keep smp_mb__after_atomic around since it's faster
than the generic implementation.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
-rw-r--r-- | arch/tile/include/asm/barrier.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/tile/include/asm/barrier.h b/arch/tile/include/asm/barrier.h index 96a42ae..d552228 100644 --- a/arch/tile/include/asm/barrier.h +++ b/arch/tile/include/asm/barrier.h @@ -79,11 +79,12 @@ mb_incoherent(void) * But after the word is updated, the routine issues an "mf" before returning, * and since it's a function call, we don't even need a compiler barrier. */ -#define smp_mb__before_atomic() smp_mb() -#define smp_mb__after_atomic() do { } while (0) +#define __smp_mb__before_atomic() __smp_mb() +#define __smp_mb__after_atomic() do { } while (0) +#define smp_mb__after_atomic() __smp_mb__after_atomic() #else /* 64 bit */ -#define smp_mb__before_atomic() smp_mb() -#define smp_mb__after_atomic() smp_mb() +#define __smp_mb__before_atomic() __smp_mb() +#define __smp_mb__after_atomic() __smp_mb() #endif #include <asm-generic/barrier.h> |