aboutsummaryrefslogtreecommitdiffstats
path: root/arch/frv/include/asm/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/frv/include/asm/atomic.h')
-rw-r--r--arch/frv/include/asm/atomic.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/frv/include/asm/atomic.h b/arch/frv/include/asm/atomic.h
index b86329d0e316..f6c3a1690101 100644
--- a/arch/frv/include/asm/atomic.h
+++ b/arch/frv/include/asm/atomic.h
@@ -17,6 +17,7 @@
17#include <linux/types.h> 17#include <linux/types.h>
18#include <asm/spr-regs.h> 18#include <asm/spr-regs.h>
19#include <asm/cmpxchg.h> 19#include <asm/cmpxchg.h>
20#include <asm/barrier.h>
20 21
21#ifdef CONFIG_SMP 22#ifdef CONFIG_SMP
22#error not SMP safe 23#error not SMP safe
@@ -29,12 +30,6 @@
29 * We do not have SMP systems, so we don't have to deal with that. 30 * We do not have SMP systems, so we don't have to deal with that.
30 */ 31 */
31 32
32/* Atomic operations are already serializing */
33#define smp_mb__before_atomic_dec() barrier()
34#define smp_mb__after_atomic_dec() barrier()
35#define smp_mb__before_atomic_inc() barrier()
36#define smp_mb__after_atomic_inc() barrier()
37
38#define ATOMIC_INIT(i) { (i) } 33#define ATOMIC_INIT(i) { (i) }
39#define atomic_read(v) (*(volatile int *)&(v)->counter) 34#define atomic_read(v) (*(volatile int *)&(v)->counter)
40#define atomic_set(v, i) (((v)->counter) = (i)) 35#define atomic_set(v, i) (((v)->counter) = (i))