diff options
author | Suzuki K Poulose <suzuki.poulose@arm.com> | 2018-03-26 16:12:39 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-03-26 19:01:40 +0200 |
commit | 5c137714dd8cae464dbd5f028c07af149e6d09fc (patch) | |
tree | 7d6282860baf80e1571cd7886e0f8625470332a0 /arch/arm64/kernel/cpufeature.c | |
parent | arm64: capabilities: Group handling of features and errata workarounds (diff) | |
download | linux-5c137714dd8cae464dbd5f028c07af149e6d09fc.tar.xz linux-5c137714dd8cae464dbd5f028c07af149e6d09fc.zip |
arm64: capabilities: Introduce weak features based on local CPU
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>
Diffstat (limited to 'arch/arm64/kernel/cpufeature.c')
-rw-r--r-- | arch/arm64/kernel/cpufeature.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index d3301359e981..a80ca94080b7 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -1010,7 +1010,7 @@ static const struct arm64_cpu_capabilities arm64_features[] = { { .desc = "Software prefetching using PRFM", .capability = ARM64_HAS_NO_HW_PREFETCH, - .type = ARM64_CPUCAP_SYSTEM_FEATURE, + .type = ARM64_CPUCAP_WEAK_LOCAL_CPU_FEATURE, .matches = has_no_hw_prefetch, }, #ifdef CONFIG_ARM64_UAO |