arm64: cpu: Move errata and feature enable callbacks closer to callers
authorWill Deacon <will.deacon@arm.com>
Tue, 7 Aug 2018 12:53:41 +0000 (13:53 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 14 Sep 2018 16:46:22 +0000 (17:46 +0100)
commitb8925ee2e12d1cb9a11d6f28b5814f2bfa59dce1
tree0f65bfc029abec901e6770e120e85a98a216c5b4
parent7c36447ae5a090729e7b129f24705bb231a07e0b
arm64: cpu: Move errata and feature enable callbacks closer to callers

The cpu errata and feature enable callbacks are only called via their
respective arm64_cpu_capabilities structure and therefore shouldn't
exist in the global namespace.

Move the PAN, RAS and cache maintenance emulation enable callbacks into
the same files as their corresponding arm64_cpu_capabilities structures,
making them static in the process.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/processor.h
arch/arm64/kernel/cpu_errata.c
arch/arm64/kernel/cpufeature.c
arch/arm64/kernel/traps.c
arch/arm64/mm/fault.c