diff options
Diffstat (limited to 'arch/arm64/include/asm/barrier.h')
-rw-r--r-- | arch/arm64/include/asm/barrier.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/include/asm/barrier.h b/arch/arm64/include/asm/barrier.h index 71a42d6599fb..709f1f6d6bbd 100644 --- a/arch/arm64/include/asm/barrier.h +++ b/arch/arm64/include/asm/barrier.h | |||
@@ -40,7 +40,7 @@ | |||
40 | #define smp_store_release(p, v) \ | 40 | #define smp_store_release(p, v) \ |
41 | do { \ | 41 | do { \ |
42 | compiletime_assert_atomic_type(*p); \ | 42 | compiletime_assert_atomic_type(*p); \ |
43 | smp_mb(); \ | 43 | barrier(); \ |
44 | ACCESS_ONCE(*p) = (v); \ | 44 | ACCESS_ONCE(*p) = (v); \ |
45 | } while (0) | 45 | } while (0) |
46 | 46 | ||
@@ -48,7 +48,7 @@ do { \ | |||
48 | ({ \ | 48 | ({ \ |
49 | typeof(*p) ___p1 = ACCESS_ONCE(*p); \ | 49 | typeof(*p) ___p1 = ACCESS_ONCE(*p); \ |
50 | compiletime_assert_atomic_type(*p); \ | 50 | compiletime_assert_atomic_type(*p); \ |
51 | smp_mb(); \ | 51 | barrier(); \ |
52 | ___p1; \ | 52 | ___p1; \ |
53 | }) | 53 | }) |
54 | 54 | ||