summaryrefslogtreecommitdiff
path: root/drivers/of/dynamic.c
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2016-07-04 17:44:48 +0100
committerWill Deacon <will.deacon@arm.com>2016-10-19 15:37:29 +0100
commit1e6e57d9b34a9075d5f9e2048ea7b09756590d11 (patch)
treeb5708d14f64b03758cb18b795ef18077fdac9b55 /drivers/of/dynamic.c
parent1c5b51dfb7b4564008e0cadec5381a69e88b0d21 (diff)
arm64: percpu: rewrite ll/sc loops in assembly
Writing the outer loop of an LL/SC sequence using do {...} while constructs potentially allows the compiler to hoist memory accesses between the STXR and the branch back to the LDXR. On CPUs that do not guarantee forward progress of LL/SC loops when faced with memory accesses to the same ERG (up to 2k) between the failed STXR and the branch back, we may end up livelocking. This patch avoids this issue in our percpu atomics by rewriting the outer loop as part of the LL/SC inline assembly block. Cc: <stable@vger.kernel.org> Fixes: f97fc810798c ("arm64: percpu: Implement this_cpu operations") Reviewed-by: Mark Rutland <mark.rutland@arm.com> Tested-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/of/dynamic.c')
0 files changed, 0 insertions, 0 deletions