aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/hwcap.h
diff options
context:
space:
mode:
authorAndrew Murray <andrew.murray@arm.com>2019-04-09 10:52:43 +0100
committerWill Deacon <will.deacon@arm.com>2019-04-16 16:27:56 +0100
commit671db581815faf17cbedd7fcbc48823a247d90b1 (patch)
tree97c4cc514b103a6eb301cbd34dcc735235401f23 /arch/arm64/include/asm/hwcap.h
parentarm64: Handle trapped DC CVADP (diff)
downloadlinux-dev-671db581815faf17cbedd7fcbc48823a247d90b1.tar.xz
linux-dev-671db581815faf17cbedd7fcbc48823a247d90b1.zip
arm64: Expose DC CVADP to userspace
ARMv8.5 builds upon the ARMv8.2 DC CVAP instruction by introducing a DC CVADP instruction which cleans the data cache to the point of deep persistence. Let's expose this support via the arm64 ELF hwcaps. Signed-off-by: Andrew Murray <andrew.murray@arm.com> Reviewed-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/hwcap.h')
-rw-r--r--arch/arm64/include/asm/hwcap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/hwcap.h b/arch/arm64/include/asm/hwcap.h
index a843b6efce5b..f78c86c64e68 100644
--- a/arch/arm64/include/asm/hwcap.h
+++ b/arch/arm64/include/asm/hwcap.h
@@ -88,6 +88,7 @@
#define KERNEL_HWCAP_PACG __khwcap_feature(PACG)
#define __khwcap2_feature(x) (const_ilog2(HWCAP2_ ## x) + 32)
+#define KERNEL_HWCAP_DCPODP __khwcap2_feature(DCPODP)
/*
* This yields a mask that user programs can use to figure out what