-
- Downloads
[ARM] barriers: improve xchg, bitops and atomic SMP barriers
Mathieu Desnoyers pointed out that the ARM barriers were lacking: - cmpxchg, xchg and atomic add return need memory barriers on architectures which can reorder the relative order in which memory read/writes can be seen between CPUs, which seems to include recent ARM architectures. Those barriers are currently missing on ARM. - test_and_xxx_bit were missing SMP barriers. So put these barriers in. Provide separate atomic_add/atomic_sub operations which do not require barriers. Reported-Reviewed-and-Acked-by:Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
Showing
- arch/arm/include/asm/assembler.h 13 additions, 0 deletionsarch/arm/include/asm/assembler.h
- arch/arm/include/asm/atomic.h 52 additions, 9 deletionsarch/arm/include/asm/atomic.h
- arch/arm/include/asm/system.h 3 additions, 0 deletionsarch/arm/include/asm/system.h
- arch/arm/kernel/entry-armv.S 1 addition, 4 deletionsarch/arm/kernel/entry-armv.S
- arch/arm/lib/bitops.h 2 additions, 0 deletionsarch/arm/lib/bitops.h
Loading
Please register or sign in to comment