Commit 57aa6a76 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

arch,score: Convert smp_mb__*()

score fully relies on asm-generic/barrier.h, so it can use its default
implementation.
Signed-off-by: default avatarPeter Zijlstra <peterz@infradead.org>
Acked-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: default avatarLennox Wu <lennox.wu@gmail.com>
Link: http://lkml.kernel.org/n/tip-4mv9svf28lnotjpfuza8urh8@git.kernel.org
Cc: Chen Liqin <liqin.linux@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 0e530747
...@@ -2,12 +2,7 @@ ...@@ -2,12 +2,7 @@
#define _ASM_SCORE_BITOPS_H #define _ASM_SCORE_BITOPS_H
#include <asm/byteorder.h> /* swab32 */ #include <asm/byteorder.h> /* swab32 */
#include <asm/barrier.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-generic/bitops.h> #include <asm-generic/bitops.h>
#include <asm-generic/bitops/__fls.h> #include <asm-generic/bitops/__fls.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment