]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: cpufeature: Expose get_arm64_ftr_reg() outside cpufeature.c
authorJames Morse <james.morse@arm.com>
Fri, 9 Sep 2022 16:59:37 +0000 (17:59 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 16 Sep 2022 14:16:34 +0000 (15:16 +0100)
commit9a307dbd97bf02b4342b758aacbf03c1bde82f77
tree66c8d402dd1023e2dbb0ac178d1cc4c3df1d440f
parentee49f7ea00f42c8a9850f34f09ae228619fffe8d
arm64: cpufeature: Expose get_arm64_ftr_reg() outside cpufeature.c

get_arm64_ftr_reg() returns the properties of a system register based
on its instruction encoding.

This is needed by erratum workaround in cpu_errata.c to modify the
user-space visible view of id registers.

Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20220909165938.3931307-3-james.morse@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/cpufeature.h
arch/arm64/kernel/cpufeature.c