aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/uapi/asm/hwcap.h
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@arm.com>2021-12-10 16:54:30 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2021-12-13 18:52:59 +0000
commit5c13f042e73200b50573ace63e1a6b94e2917616 (patch)
treede22698982896d4808630041ca8797f2b522ca3b /arch/arm64/include/uapi/asm/hwcap.h
parentLinux 5.16-rc3 (diff)
downloadlinux-dev-5c13f042e73200b50573ace63e1a6b94e2917616.tar.xz
linux-dev-5c13f042e73200b50573ace63e1a6b94e2917616.zip
arm64: cpufeature: add HWCAP for FEAT_AFP
Add a new HWCAP to detect the Alternate Floating-point Behaviour feature (FEAT_AFP), introduced in Armv8.7. Also expose this to userspace in the ID_AA64MMFR1_EL1 feature register. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Cc: Will Deacon <will@kernel.org> Acked-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20211210165432.8106-2-joey.gouly@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/uapi/asm/hwcap.h')
-rw-r--r--arch/arm64/include/uapi/asm/hwcap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/uapi/asm/hwcap.h b/arch/arm64/include/uapi/asm/hwcap.h
index 7b23b16f21ce..180da7396549 100644
--- a/arch/arm64/include/uapi/asm/hwcap.h
+++ b/arch/arm64/include/uapi/asm/hwcap.h
@@ -76,5 +76,6 @@
#define HWCAP2_BTI (1 << 17)
#define HWCAP2_MTE (1 << 18)
#define HWCAP2_ECV (1 << 19)
+#define HWCAP2_AFP (1 << 20)
#endif /* _UAPI__ASM_HWCAP_H */