summaryrefslogtreecommitdiffstats
path: root/arch/tile/include/asm/bitops_32.h
diff options
context:
space:
mode:
authorPeter Zijlstra2014-03-13 19:00:35 +0100
committerIngo Molnar2014-04-18 14:20:45 +0200
commitce3609f93445846f7b5a5b4bacb236a9bdc35216 (patch)
tree89b4eb5b7ae0b9e0dd8b003b481f1a253a1dd0fd /arch/tile/include/asm/bitops_32.h
parentarch,sparc: Convert smp_mb__*() (diff)
downloadkernel-qcow2-linux-ce3609f93445846f7b5a5b4bacb236a9bdc35216.tar.gz
kernel-qcow2-linux-ce3609f93445846f7b5a5b4bacb236a9bdc35216.tar.xz
kernel-qcow2-linux-ce3609f93445846f7b5a5b4bacb236a9bdc35216.zip
arch,tile: Convert smp_mb__*()
Implement the new smp_mb__* ops as per the old ones. Signed-off-by: Peter Zijlstra <peterz@infradead.org> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Chris Metcalf <cmetcalf@tilera.com> Link: http://lkml.kernel.org/n/tip-euuabnf5a3u23fy4fq8m3jcg@git.kernel.org Cc: Akinobu Mita <akinobu.mita@gmail.com> Cc: Chen Gang <gang.chen@asianux.com> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/tile/include/asm/bitops_32.h')
-rw-r--r--arch/tile/include/asm/bitops_32.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/tile/include/asm/bitops_32.h b/arch/tile/include/asm/bitops_32.h
index 386865ad2f55..bbf7b666f21d 100644
--- a/arch/tile/include/asm/bitops_32.h
+++ b/arch/tile/include/asm/bitops_32.h
@@ -49,8 +49,8 @@ static inline void set_bit(unsigned nr, volatile unsigned long *addr)
* restricted to acting on a single-word quantity.
*
* clear_bit() may not contain a memory barrier, so if it is used for
- * locking purposes, you should call smp_mb__before_clear_bit() and/or
- * smp_mb__after_clear_bit() to ensure changes are visible on other cpus.
+ * locking purposes, you should call smp_mb__before_atomic() and/or
+ * smp_mb__after_atomic() to ensure changes are visible on other cpus.
*/
static inline void clear_bit(unsigned nr, volatile unsigned long *addr)
{
@@ -121,10 +121,6 @@ static inline int test_and_change_bit(unsigned nr,
return (_atomic_xor(addr, mask) & mask) != 0;
}
-/* See discussion at smp_mb__before_atomic_dec() in <asm/atomic_32.h>. */
-#define smp_mb__before_clear_bit() smp_mb()
-#define smp_mb__after_clear_bit() do {} while (0)
-
#include <asm-generic/bitops/ext2-atomic.h>
#endif /* _ASM_TILE_BITOPS_32_H */