]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/cpufeature: Store elf_hwcaps as a bitmap rather than unsigned long
authorMark Brown <broonie@kernel.org>
Thu, 7 Jul 2022 10:36:31 +0000 (11:36 +0100)
committerWill Deacon <will@kernel.org>
Wed, 20 Jul 2022 10:18:11 +0000 (11:18 +0100)
commit4a5421e909fca95447e8dc1d75e4ee80c3ea8662
tree5e0a3850bc512dbe08d1ba991bfef8383a988efe
parentdd88f83f0a3fe4800b89f72f2287a433971f3c88
arm64/cpufeature: Store elf_hwcaps as a bitmap rather than unsigned long

When we added support for AT_HWCAP2 we took advantage of the fact that we
have limited hwcaps to the low 32 bits and stored it along with AT_HWCAP
in a single unsigned integer. Thanks to the ever expanding capabilities of
the architecture we have now allocated all 64 of the bits in an unsigned
long so in preparation for adding more hwcaps convert elf_hwcap to be a
bitmap instead, with 64 bits allocated to each AT_HWCAP.

There should be no functional change from this patch.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20220707103632.12745-3-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/cpufeature.h
arch/arm64/include/asm/hwcap.h
arch/arm64/kernel/cpufeature.c