Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
static inline int arch_atomic_##op##_return(int i, atomic_t *v) \
{ \
unsigned long flags; \
static inline int arch_atomic_##op##_return(int i, atomic_t *v) \
{ \
unsigned long flags; \
\
/* \
* spin lock/unlock provides the needed smp_mb() before/after \
\
/* \
* spin lock/unlock provides the needed smp_mb() before/after \
static inline int arch_atomic_fetch_##op(int i, atomic_t *v) \
{ \
unsigned long flags; \
static inline int arch_atomic_fetch_##op(int i, atomic_t *v) \
{ \
unsigned long flags; \
\
/* \
* spin lock/unlock provides the needed smp_mb() before/after \
\
/* \
* spin lock/unlock provides the needed smp_mb() before/after \