diff options
author | Peter Zijlstra <peterz@infradead.org> | 2014-03-13 14:00:37 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-04-18 05:40:34 -0400 |
commit | a8ec1516a74554992605f230859936d5d79c27ed (patch) | |
tree | d62cf7d927807ffc96a1706dc391daa29d80a5bc /arch/c6x/include/asm | |
parent | b7bb7d9b28f6278625fbe7892b8c7799bb12a26a (diff) |
arch,c6x: Convert smp_mb__*()
c6x doesn't have a barrier.h and completely relies on
asm-generic/barrier.h. Therefore its smp_mb() is barrier() and we can
use the default versions that are smp_mb().
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Mark Salter <msalter@redhat.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/n/tip-kl53k3pyj0rbd80jq8ralpf3@git.kernel.org
Cc: Aurelien Jacquiot <a-jacquiot@ti.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mark Salter <msalter@redhat.com>
Cc: linux-c6x-dev@linux-c6x.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/c6x/include/asm')
-rw-r--r-- | arch/c6x/include/asm/bitops.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/c6x/include/asm/bitops.h b/arch/c6x/include/asm/bitops.h index 0bec7e5036a8..f0ab012401b6 100644 --- a/arch/c6x/include/asm/bitops.h +++ b/arch/c6x/include/asm/bitops.h | |||
@@ -14,14 +14,8 @@ | |||
14 | #ifdef __KERNEL__ | 14 | #ifdef __KERNEL__ |
15 | 15 | ||
16 | #include <linux/bitops.h> | 16 | #include <linux/bitops.h> |
17 | |||
18 | #include <asm/byteorder.h> | 17 | #include <asm/byteorder.h> |
19 | 18 | #include <asm/barrier.h> | |
20 | /* | ||
21 | * clear_bit() doesn't provide any barrier for the compiler. | ||
22 | */ | ||
23 | #define smp_mb__before_clear_bit() barrier() | ||
24 | #define smp_mb__after_clear_bit() barrier() | ||
25 | 19 | ||
26 | /* | 20 | /* |
27 | * We are lucky, DSP is perfect for bitops: do it in 3 cycles | 21 | * We are lucky, DSP is perfect for bitops: do it in 3 cycles |