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)
committerHaibo Chen <haibo.chen@nxp.com>
Thu, 12 Apr 2018 10:46:25 +0000 (18:46 +0800)
commit85a245214ea180aa189a7590f0cb5df43834d00b
treed94e9db1cacf6fecf1e3d7472202fe975ed337a5
parent80f9692407cabbc04585dd6cab78a621c39f20e1
arm64: cpufeature: Pass capability structure to ->enable callback

commit 0a0d111d40fd upstream.

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: Alex Shi <alex.shi@linaro.org>
Conflicts:
arch/arm64/kernel/cpufeature.c
arch/arm64/kernel/cpufeature.c