]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
arm64: capabilities: Introduce weak features based on local CPU
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Thu, 24 Oct 2019 12:48:06 +0000 (14:48 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 18:04:47 +0000 (19:04 +0100)
commita3d812d21a75be061ac18840ad629657488dcb8f
tree4c25722a5a77313cd6b22977bb54a174b34c6809
parente510257d3d53b95474ac11ab0bf1d1bf3ee7e0d3
arm64: capabilities: Introduce weak features based on local CPU

BugLink: https://bugs.launchpad.net/bugs/1851876
[ Upstream commit 5c137714dd8cae464dbd5f028c07af149e6d09fc ]

Now that we have the flexibility of defining system features based
on individual CPUs, introduce CPU feature type that can be detected
on a local SCOPE and ignores the conflict on late CPUs. This is
applicable for ARM64_HAS_NO_HW_PREFETCH, where it is fine for
the system to have CPUs without hardware prefetch turning up
later. We only suffer a performance penalty, nothing fatal.

Cc: Will Deacon <will.deacon@arm.com>
Reviewed-by: Dave Martin <dave.martin@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/arm64/include/asm/cpufeature.h
arch/arm64/kernel/cpufeature.c