Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arch,score: Convert smp_mb__*()

score fully relies on asm-generic/barrier.h, so it can use its default
implementation.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Lennox 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: Ingo Molnar <mingo@kernel.org>

authored by

Peter Zijlstra and committed by
Ingo Molnar
57aa6a76 0e530747

+1 -6
+1 -6
arch/score/include/asm/bitops.h
··· 2 2 #define _ASM_SCORE_BITOPS_H 3 3 4 4 #include <asm/byteorder.h> /* swab32 */ 5 - 6 - /* 7 - * clear_bit() doesn't provide any barrier for the compiler. 8 - */ 9 - #define smp_mb__before_clear_bit() barrier() 10 - #define smp_mb__after_clear_bit() barrier() 5 + #include <asm/barrier.h> 11 6 12 7 #include <asm-generic/bitops.h> 13 8 #include <asm-generic/bitops/__fls.h>