]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
arm64: prefetch: add alternative pattern for CPUs without a prefetcher
authorWill Deacon <will.deacon@arm.com>
Tue, 2 Feb 2016 12:46:24 +0000 (12:46 +0000)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:19:40 +0000 (10:19 +0100)
commitbcea7930bcef1ccd2576e0cb22fd133ece1db9cc
tree8f052883d992bd09e7ab11e5eb6ad5c69cd33ea5
parentccea79c525329571f6dafa049cba17a55cdadc51
arm64: prefetch: add alternative pattern for CPUs without a prefetcher

Most CPUs have a hardware prefetcher which generally performs better
without explicit prefetch instructions issued by software, however
some CPUs (e.g. Cavium ThunderX) rely solely on explicit prefetch
instructions.

This patch adds an alternative pattern (ARM64_HAS_NO_HW_PREFETCH) to
allow our library code to make use of explicit prefetch instructions
during things like copy routines only when the CPU does not have the
capability to perform the prefetching itself.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Tested-by: Andrew Pinski <apinski@cavium.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from linux-next commit d5370f754875460662abe8561388e019d90dd0c4)
Signed-off-by: Dann Frazier <dann.frazier@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/arm64/include/asm/cpufeature.h
arch/arm64/include/asm/cputype.h
arch/arm64/kernel/cpu_errata.c
arch/arm64/kernel/cpufeature.c