Skip to content

Commit e34f78b

Browse files
brooniectmarinas
authored andcommitted
arm64/cpufeature: Use helper for ECV CNTPOFF cpufeature
The newly added support for ECV CNTPOFF open codes the recently added helper ARM64_CPUID_FIELDS(), make use of the helper. No functional change. Signed-off-by: Mark Brown <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 44c026a commit e34f78b

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
@@ -2235,11 +2235,7 @@ static const struct arm64_cpu_capabilities arm64_features[] = {
22352235
.capability = ARM64_HAS_ECV_CNTPOFF,
22362236
.type = ARM64_CPUCAP_SYSTEM_FEATURE,
22372237
.matches = has_cpuid_feature,
2238-
.sys_reg = SYS_ID_AA64MMFR0_EL1,
2239-
.field_pos = ID_AA64MMFR0_EL1_ECV_SHIFT,
2240-
.field_width = 4,
2241-
.sign = FTR_UNSIGNED,
2242-
.min_field_value = ID_AA64MMFR0_EL1_ECV_CNTPOFF,
2238+
ARM64_CPUID_FIELDS(ID_AA64MMFR0_EL1, ECV, CNTPOFF)
22432239
},
22442240
#ifdef CONFIG_ARM64_PAN
22452241
{

0 commit comments

Comments
 (0)