summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2013-07-04 12:43:18 +0200
committerWill Deacon <will.deacon@arm.com>2013-09-30 17:42:56 +0200
commitf38d999c4d16fc0fce4270374f15fbb2d8713c09 (patch)
treec91a2a9fd5505a27ee0e8d03141842b07cc4e0c9 /arch/arm/lib
parentARM: locks: prefetch the destination word for write prior to strex (diff)
downloadlinux-f38d999c4d16fc0fce4270374f15fbb2d8713c09.tar.xz
linux-f38d999c4d16fc0fce4270374f15fbb2d8713c09.zip
ARM: atomics: prefetch the destination word for write prior to strex
The cost of changing a cacheline from shared to exclusive state can be significant, especially when this is triggered by an exclusive store, since it may result in having to retry the transaction. This patch prefixes our atomic access implementations with pldw instructions (on CPUs which support them) to try and grab the line in exclusive state from the start. Only the barrier-less functions are updated, since memory barriers can limit the usefulness of prefetching data. Acked-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/lib')
0 files changed, 0 insertions, 0 deletions