]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64/hwcap: Generate the KERNEL_HWCAP_ definitions for the hwcaps
authorMark Brown <broonie@kernel.org>
Mon, 2 Mar 2026 22:53:16 +0000 (22:53 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 9 Apr 2026 15:50:23 +0000 (16:50 +0100)
commitabed23c3c44f565dc812563ac015be70dd61e97b
tree22977e680709c7bfee3fe55255cfe47f9ae3b8e8
parentee020bf6f14094c9ae434bb37e6957a1fdad513c
arm64/hwcap: Generate the KERNEL_HWCAP_ definitions for the hwcaps

Currently for each hwcap we define both the HWCAPn_NAME definition which is
exposed to userspace and a kernel internal KERNEL_HWCAP_NAME definition
which we use internally. This is tedious and repetitive, instead use a
script to generate the KERNEL_HWCAP_ definitions from the UAPI definitions.

No functional changes intended.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/hwcap.h
arch/arm64/tools/Makefile
arch/arm64/tools/gen-kernel-hwcaps.sh [new file with mode: 0644]