arm64: Get rid of ARM64_HAS_NO_HW_PREFETCH
authorMarc Zyngier <maz@kernel.org>
Wed, 22 Nov 2023 13:37:54 +0000 (13:37 +0000)
committerWill Deacon <will@kernel.org>
Tue, 5 Dec 2023 12:02:52 +0000 (12:02 +0000)
commit103423ad7e56d6c756738823c332c414b07899e6
treeb9d035477eccd3c6769cd3597c12d15b139af195
parent2cc14f52aeb78ce3f29677c2de1f06c0e91471ab
arm64: Get rid of ARM64_HAS_NO_HW_PREFETCH

Back in 2016, it was argued that implementations lacking a HW
prefetcher could be helped by sprinkling a number of PRFM
instructions in strategic locations.

In 2023, the one platform that presumably needed this hack is no
longer in active use (let alone maintained), and an quick
experiment shows dropping this hack only leads to a 0.4% drop
on a full kernel compilation (tested on a MT30-GS0 48 CPU system).

Given that this is pretty much in the noise department and that
it may give odd ideas to other implementers, drop the hack for
good.

Suggested-by: Will Deacon <will@kernel.org>
Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20231122133754.1240687-1-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpufeature.c
arch/arm64/lib/copy_page.S
arch/arm64/tools/cpucaps