arm64: HWCAP: encapsulate elf_hwcap
authorAndrew Murray <andrew.murray@arm.com>
Tue, 9 Apr 2019 09:52:41 +0000 (10:52 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 16 Apr 2019 15:27:35 +0000 (16:27 +0100)
commitaec0bff757c937489d003ab7b36c52e77e4b096a
tree3ce7e91045b1b1265a7d6ad3b708325fafec8074
parentaaba098fe6ce594ae6f963dc041be6307e499f19
arm64: HWCAP: encapsulate elf_hwcap

The introduction of AT_HWCAP2 introduced accessors which ensure that
hwcap features are set and tested appropriately.

Let's now mandate access to elf_hwcap via these accessors by making
elf_hwcap static within cpufeature.c.

Signed-off-by: Andrew Murray <andrew.murray@arm.com>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/cpufeature.h
arch/arm64/include/asm/hwcap.h
arch/arm64/kernel/cpufeature.c