• W
    ARM: atomics: prefetch the destination word for write prior to strex · f38d999c
    Will Deacon 提交于
    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: NNicolas Pitre <nico@linaro.org>
    Signed-off-by: NWill Deacon <will.deacon@arm.com>
    f38d999c
atomic.h 10.0 KB