arm64: cpufeature: Rework ptr auth hwcaps using multi_entry_cap_matches
authorWill Deacon <will.deacon@arm.com>
Wed, 12 Dec 2018 15:53:54 +0000 (15:53 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 13 Dec 2018 16:42:47 +0000 (16:42 +0000)
commit1e013d06120cbf67e771848fc5d98174c33b078a
tree18c322bc54bad6edd5fb45730488288d9fb2fc76
parenta56005d3210500f8a166fcb83cbb5ac5d0f909e4
arm64: cpufeature: Rework ptr auth hwcaps using multi_entry_cap_matches

Open-coding the pointer-auth HWCAPs is a mess and can be avoided by
reusing the multi-cap logic from the CPU errata framework.

Move the multi_entry_cap_matches code to cpufeature.h and reuse it for
the pointer auth HWCAPs.

Reviewed-by: Suzuki Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/cpufeature.h
arch/arm64/kernel/cpu_errata.c
arch/arm64/kernel/cpufeature.c