projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7bb7d9
)
arch,c6x: Convert smp_mb__*()
author
Peter Zijlstra
<
[email protected]
>
Thu, 13 Mar 2014 18:00:37 +0000
(19:00 +0100)
committer
Ingo Molnar
<
[email protected]
>
Fri, 18 Apr 2014 09:40:34 +0000
(11:40 +0200)
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 <
[email protected]
>
Acked-by: Mark Salter <
[email protected]
>
Acked-by: Paul E. McKenney <
[email protected]
>
Link:
http://lkml.kernel.org/n/
[email protected]
Cc: Aurelien Jacquiot <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Mark Salter <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/c6x/include/asm/bitops.h
patch
|
blob
|
history
diff --git
a/arch/c6x/include/asm/bitops.h
b/arch/c6x/include/asm/bitops.h
index 0bec7e5036a85304415455b0857d5312f7e4cd2c..f0ab012401b67c10d6717cab8aa52f6987ba0ba3 100644
(file)
--- a/
arch/c6x/include/asm/bitops.h
+++ b/
arch/c6x/include/asm/bitops.h
@@
-14,14
+14,8
@@
#ifdef __KERNEL__
#include <linux/bitops.h>
-
#include <asm/byteorder.h>
-
-/*
- * clear_bit() doesn't provide any barrier for the compiler.
- */
-#define smp_mb__before_clear_bit() barrier()
-#define smp_mb__after_clear_bit() barrier()
+#include <asm/barrier.h>
/*
* We are lucky, DSP is perfect for bitops: do it in 3 cycles