]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94a596b905cb78d05f795e2a7524bf829f99a0d4
tree18c322bc54bad6edd5fb45730488288d9fb2fc76
parent0f12fa869a2b6477da6ba67eb0d7f444078e9304
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