diff options
Diffstat (limited to 'arch/ia64/include/asm/barrier.h')
-rw-r--r-- | arch/ia64/include/asm/barrier.h | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/arch/ia64/include/asm/barrier.h b/arch/ia64/include/asm/barrier.h index a48957c7b445..e8fffb03963c 100644 --- a/arch/ia64/include/asm/barrier.h +++ b/arch/ia64/include/asm/barrier.h | |||
@@ -35,26 +35,22 @@ | |||
35 | * it's (presumably) much slower than mf and (b) mf.a is supported for | 35 | * it's (presumably) much slower than mf and (b) mf.a is supported for |
36 | * sequential memory pages only. | 36 | * sequential memory pages only. |
37 | */ | 37 | */ |
38 | #define mb() ia64_mf() | 38 | #define mb() ia64_mf() |
39 | #define rmb() mb() | 39 | #define rmb() mb() |
40 | #define wmb() mb() | 40 | #define wmb() mb() |
41 | #define read_barrier_depends() do { } while(0) | ||
42 | 41 | ||
43 | #ifdef CONFIG_SMP | 42 | #ifdef CONFIG_SMP |
44 | # define smp_mb() mb() | 43 | # define smp_mb() mb() |
45 | # define smp_rmb() rmb() | ||
46 | # define smp_wmb() wmb() | ||
47 | # define smp_read_barrier_depends() read_barrier_depends() | ||
48 | |||
49 | #else | 44 | #else |
50 | |||
51 | # define smp_mb() barrier() | 45 | # define smp_mb() barrier() |
52 | # define smp_rmb() barrier() | ||
53 | # define smp_wmb() barrier() | ||
54 | # define smp_read_barrier_depends() do { } while(0) | ||
55 | |||
56 | #endif | 46 | #endif |
57 | 47 | ||
48 | #define smp_rmb() smp_mb() | ||
49 | #define smp_wmb() smp_mb() | ||
50 | |||
51 | #define read_barrier_depends() do { } while (0) | ||
52 | #define smp_read_barrier_depends() do { } while (0) | ||
53 | |||
58 | #define smp_mb__before_atomic() barrier() | 54 | #define smp_mb__before_atomic() barrier() |
59 | #define smp_mb__after_atomic() barrier() | 55 | #define smp_mb__after_atomic() barrier() |
60 | 56 | ||