diff options
author | Marc Zyngier <maz@kernel.org> | 2023-12-04 14:36:05 +0000 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2023-12-05 11:38:03 +0000 |
commit | d8e12a0d3715fbcc26fb2baac979bd07ba4c08d0 (patch) | |
tree | 3db4c0ac05841ed19cb6de9f059dee016ac37cf5 /arch/arm64/kernel | |
parent | ced242ba9d7cb3571f6e0f165f643cb832d52148 (diff) | |
download | linux-stable-d8e12a0d3715fbcc26fb2baac979bd07ba4c08d0.tar.gz linux-stable-d8e12a0d3715fbcc26fb2baac979bd07ba4c08d0.tar.bz2 linux-stable-d8e12a0d3715fbcc26fb2baac979bd07ba4c08d0.zip |
arm64: Kill detection of VPIPT i-cache policy
Since the kernel will never run on a system with the VPIPT i-cache
policy, drop the detection code altogether.
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20231204143606.1806432-3-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel')
-rw-r--r-- | arch/arm64/kernel/cpuinfo.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index a257da7b56fe..47043c0d95ec 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -36,8 +36,6 @@ static struct cpuinfo_arm64 boot_cpu_data; static inline const char *icache_policy_str(int l1ip) { switch (l1ip) { - case CTR_EL0_L1Ip_VPIPT: - return "VPIPT"; case CTR_EL0_L1Ip_VIPT: return "VIPT"; case CTR_EL0_L1Ip_PIPT: @@ -388,9 +386,6 @@ static void cpuinfo_detect_icache_policy(struct cpuinfo_arm64 *info) switch (l1ip) { case CTR_EL0_L1Ip_PIPT: break; - case CTR_EL0_L1Ip_VPIPT: - set_bit(ICACHEF_VPIPT, &__icache_flags); - break; case CTR_EL0_L1Ip_VIPT: default: /* Assume aliasing */ |