ARM: 8135/1: Fix in-correct barrier usage in SWP{B} emulation
authorPunit Agrawal <punit.agrawal@arm.com>
Mon, 1 Sep 2014 16:16:01 +0000 (17:16 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 12 Sep 2014 16:38:58 +0000 (17:38 +0100)
commite918a62a2ba81d10a3cc2c513dc70034c9524a95
tree6f2c9f379f791a251319be69149d0061b5672aeb
parenta040803a9d6b8c1876d3487a5cb69602ebcbb82c
ARM: 8135/1: Fix in-correct barrier usage in SWP{B} emulation

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.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/swp_emulate.c