Enable atomic swap and store macro with acquire and release ordering 18/15618/5
authorSirshak Das <sirshak.das@arm.com>
Fri, 12 Oct 2018 14:38:27 +0000 (09:38 -0500)
committerDamjan Marion <dmarion@me.com>
Mon, 5 Nov 2018 12:31:43 +0000 (12:31 +0000)
Add atomic swap and store macro with acquire and release ordering
respectively.  Variable in question is interupt_pending variable which
is used as guard variable by input nodes to process the device queue.

Atomic Swap is used with Acquire ordering as writes or reads following
this in program order should not be reordered before the swap.

Atomic Store is used with Release ordering, as post store the node is
added to pending list.

Change-Id: I1be49e91a15c58d0bf21ff5ba1bd37d5d7d12f7a
Original-patch-by: Damjan Marion <damarion@cisco.com>
Signed-off-by: Sirshak Das <sirshak.das@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Ola Liljedahl <ola.liljedahl@arm.com>

No differences found