]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit381495ff63717cd0d93821c425d0cba49c2fd3fd
tree6f2c9f379f791a251319be69149d0061b5672aeb
parent189d0406b9e1205685bd5eae86d1c8e3c32d7d0c
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