OSDN Git Service

arm64: cpufeature: Pass capability structure to ->enable callback
authorWill Deacon <will.deacon@arm.com>
Tue, 2 Jan 2018 21:37:25 +0000 (21:37 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 8 Jan 2018 18:43:36 +0000 (18:43 +0000)
commit0a0d111d40fd1dc588cc590fab6b55d86ddc71d3
tree9c02a5b5fcc48734c321965efecbab3f8b8e4dcb
parent179a56f6f9fbda28f6ca07db1fc3dfad6bc7343c
arm64: cpufeature: Pass capability structure to ->enable callback

In order to invoke the CPU capability ->matches callback from the ->enable
callback for applying local-CPU workarounds, we need a handle on the
capability structure.

This patch passes a pointer to the capability structure to the ->enable
callback.

Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/cpufeature.c