Skip to content

Commit ce33cea

Browse files
brooniewilldeacon
authored andcommitted
arm64/cpufeature: Use ARM64_CPUID_FIELD() to match EVT
The recently added Enhanced Virtualization Traps cpufeature does not use the ARM64_CPUID_FIELDS() helper, convert it to do so. No functional change. Signed-off-by: Mark Brown <broonie@kernel.org> Reviewed-by: Zenghui Yu <zenghui.yu@linux.dev> Link: https://lore.kernel.org/r/20230718-arm64-evt-cpuid-helper-v1-1-68375d1e6b92@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
1 parent 6eaae19 commit ce33cea

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

arch/arm64/kernel/cpufeature.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2708,12 +2708,8 @@ static const struct arm64_cpu_capabilities arm64_features[] = {
27082708
.desc = "Enhanced Virtualization Traps",
27092709
.capability = ARM64_HAS_EVT,
27102710
.type = ARM64_CPUCAP_SYSTEM_FEATURE,
2711-
.sys_reg = SYS_ID_AA64MMFR2_EL1,
2712-
.sign = FTR_UNSIGNED,
2713-
.field_pos = ID_AA64MMFR2_EL1_EVT_SHIFT,
2714-
.field_width = 4,
2715-
.min_field_value = ID_AA64MMFR2_EL1_EVT_IMP,
27162711
.matches = has_cpuid_feature,
2712+
ARM64_CPUID_FIELDS(ID_AA64MMFR2_EL1, EVT, IMP)
27172713
},
27182714
{},
27192715
};

0 commit comments

Comments
 (0)