[PATCH 1/6] arm: Fix in-correct barrier usage in SWP{B} emulation

Will Deacon will.deacon at arm.com
Tue Aug 26 06:04:27 PDT 2014


On Tue, Aug 26, 2014 at 11:28:45AM +0100, Punit Agrawal wrote:
> According to the ARM ARMv7, explicit barriers are necessary when using
> synchronisation primitives such as SWP{B}. The use of these
> instructions does not automatically imply a barrier and any ordering
> requirements by the software must be explicitly expressed with the use
> of suitable barriers.
> 
> Based on this, remove the barriers from SWP{B} emulation.
> 
> Cc: Russell King <linux at arm.linux.org.uk>
> Signed-off-by: Punit Agrawal <punit.agrawal at arm.com>
> ---
>  arch/arm/kernel/swp_emulate.c |   15 ---------------
>  1 file changed, 15 deletions(-)

Acked-by: Will Deacon <will.deacon at arm.com>

Will



More information about the linux-arm-kernel mailing list