projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6eaae19
)
arm64/cpufeature: Use ARM64_CPUID_FIELD() to match EVT
author
Mark Brown
<broonie@kernel.org>
Tue, 18 Jul 2023 19:45:44 +0000
(20:45 +0100)
committer
Will Deacon
<will@kernel.org>
Thu, 27 Jul 2023 10:14:57 +0000
(11:14 +0100)
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>
arch/arm64/kernel/cpufeature.c
patch
|
blob
|
history
diff --git
a/arch/arm64/kernel/cpufeature.c
b/arch/arm64/kernel/cpufeature.c
index
f9d456f
..
bcb0063
100644
(file)
--- a/
arch/arm64/kernel/cpufeature.c
+++ b/
arch/arm64/kernel/cpufeature.c
@@
-2708,12
+2708,8
@@
static const struct arm64_cpu_capabilities arm64_features[] = {
.desc = "Enhanced Virtualization Traps",
.capability = ARM64_HAS_EVT,
.type = ARM64_CPUCAP_SYSTEM_FEATURE,
- .sys_reg = SYS_ID_AA64MMFR2_EL1,
- .sign = FTR_UNSIGNED,
- .field_pos = ID_AA64MMFR2_EL1_EVT_SHIFT,
- .field_width = 4,
- .min_field_value = ID_AA64MMFR2_EL1_EVT_IMP,
.matches = has_cpuid_feature,
+ ARM64_CPUID_FIELDS(ID_AA64MMFR2_EL1, EVT, IMP)
},
{},
};