Home
last modified time | relevance | path

Searched hist:f38d999c4d16fc0fce4270374f15fbb2d8713c09 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/arm/include/asm/
H A Datomic.hdiff f38d999c4d16fc0fce4270374f15fbb2d8713c09 Thu Jul 04 05:43:18 CDT 2013 Will Deacon <will.deacon@arm.com> 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>