aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arc
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2014-03-12 12:11:00 -0400
committerIngo Molnar <mingo@kernel.org>2014-04-18 05:40:31 -0400
commitd594ffa94b7efdd8c6da5ee48aea8ae229809b55 (patch)
treea48a795a19120e0434d901a402e0baeb5082a18e /arch/arc
parent6ae11028a62b2f82ee283392a84f33da599a81e7 (diff)
arch,arc: Convert smp_mb__*()
The arc mb() implementation is a compiler barrier(), therefore it all doesn't matter one way or the other. Simply remove the existing definitions and use whatever is generated by the defaults. Signed-off-by: Peter Zijlstra <peterz@infradead.org> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Link: http://lkml.kernel.org/n/tip-ua48a59wri3ybz1rz8i7uvbr@git.kernel.org Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Vineet Gupta <vgupta@synopsys.com> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/arc')
-rw-r--r--arch/arc/include/asm/atomic.h5
-rw-r--r--arch/arc/include/asm/bitops.h5
2 files changed, 1 insertions, 9 deletions
diff --git a/arch/arc/include/asm/atomic.h b/arch/arc/include/asm/atomic.h
index 03e494f695d1..83f03ca6caf6 100644
--- a/arch/arc/include/asm/atomic.h
+++ b/arch/arc/include/asm/atomic.h
@@ -190,11 +190,6 @@ static inline void atomic_clear_mask(unsigned long mask, unsigned long *addr)
190 190
191#endif /* !CONFIG_ARC_HAS_LLSC */ 191#endif /* !CONFIG_ARC_HAS_LLSC */
192 192
193#define smp_mb__before_atomic_dec() barrier()
194#define smp_mb__after_atomic_dec() barrier()
195#define smp_mb__before_atomic_inc() barrier()
196#define smp_mb__after_atomic_inc() barrier()
197
198/** 193/**
199 * __atomic_add_unless - add unless the number is a given value 194 * __atomic_add_unless - add unless the number is a given value
200 * @v: pointer of type atomic_t 195 * @v: pointer of type atomic_t
diff --git a/arch/arc/include/asm/bitops.h b/arch/arc/include/asm/bitops.h
index 647a83a8e756..ebc0cf3164dc 100644
--- a/arch/arc/include/asm/bitops.h
+++ b/arch/arc/include/asm/bitops.h
@@ -19,6 +19,7 @@
19 19
20#include <linux/types.h> 20#include <linux/types.h>
21#include <linux/compiler.h> 21#include <linux/compiler.h>
22#include <asm/barrier.h>
22 23
23/* 24/*
24 * Hardware assisted read-modify-write using ARC700 LLOCK/SCOND insns. 25 * Hardware assisted read-modify-write using ARC700 LLOCK/SCOND insns.
@@ -496,10 +497,6 @@ static inline __attribute__ ((const)) int __ffs(unsigned long word)
496 */ 497 */
497#define ffz(x) __ffs(~(x)) 498#define ffz(x) __ffs(~(x))
498 499
499/* TODO does this affect uni-processor code */
500#define smp_mb__before_clear_bit() barrier()
501#define smp_mb__after_clear_bit() barrier()
502
503#include <asm-generic/bitops/hweight.h> 500#include <asm-generic/bitops/hweight.h>
504#include <asm-generic/bitops/fls64.h> 501#include <asm-generic/bitops/fls64.h>
505#include <asm-generic/bitops/sched.h> 502#include <asm-generic/bitops/sched.h>