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)
committerSrinivas Ramana <sramana@codeaurora.org>
Tue, 6 Feb 2018 14:33:49 +0000 (20:03 +0530)
commit715fcb10bea04565f6bd2267537954f1f9937e83
tree5aeb007ec5fdeeb4ddea78ba8beb0cd92d7c7e50
parentce870f33b6838a94731826af9c8d45a703d941eb
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.

Change-Id: Ie9a18c7a5d721dcb3d3d6c6001c74366525cf87e
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Git-commit: 0a0d111d40fd1dc588cc590fab6b55d86ddc71d3
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
arch/arm64/kernel/cpufeature.c