summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-tegra20-sflash.c
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2016-07-04 17:44:48 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-28 03:01:35 -0400
commitb31070890d2a5ecd9523d123a2ea94c0ee18d310 (patch)
treebfec95d83dab04800328ffdaef21248257867467 /drivers/spi/spi-tegra20-sflash.c
parent8dc22842bd73eab7701c02b5857e8b25afd349dc (diff)
downloadtalos-op-linux-b31070890d2a5ecd9523d123a2ea94c0ee18d310.tar.gz
talos-op-linux-b31070890d2a5ecd9523d123a2ea94c0ee18d310.zip
arm64: percpu: rewrite ll/sc loops in assembly
commit 1e6e57d9b34a9075d5f9e2048ea7b09756590d11 upstream. 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. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/spi/spi-tegra20-sflash.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud