summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/hwcap.h
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@arm.com>2023-08-04 16:37:45 +0200
committerWill Deacon <will@kernel.org>2023-08-04 18:32:13 +0200
commit7f86d128e437990fd08d9e66ae7c1571666cff8a (patch)
tree7c9f7f385ea3d1bedfc2e9c7473200185a3ffd4e /arch/arm64/include/asm/hwcap.h
parentarm64/cpufeature: Use ARM64_CPUID_FIELD() to match EVT (diff)
downloadlinux-7f86d128e437990fd08d9e66ae7c1571666cff8a.tar.xz
linux-7f86d128e437990fd08d9e66ae7c1571666cff8a.zip
arm64: add HWCAP for FEAT_HBC (hinted conditional branches)
Add a HWCAP for FEAT_HBC, so that userspace can make a decision on using this feature. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20230804143746.3900803-2-joey.gouly@arm.com Signed-off-by: Will Deacon <will@kernel.org>
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 692b1ec663b2..521267478d18 100644
--- a/arch/arm64/include/asm/hwcap.h
+++ b/arch/arm64/include/asm/hwcap.h
@@ -138,6 +138,7 @@
#define KERNEL_HWCAP_SME_B16B16 __khwcap2_feature(SME_B16B16)
#define KERNEL_HWCAP_SME_F16F16 __khwcap2_feature(SME_F16F16)
#define KERNEL_HWCAP_MOPS __khwcap2_feature(MOPS)
+#define KERNEL_HWCAP_HBC __khwcap2_feature(HBC)
/*
* This yields a mask that user programs can use to figure out what