drivers/firmware: Expose psci_get_version through psci_ops structure
authorWill Deacon <will.deacon@arm.com>
Tue, 2 Jan 2018 21:45:41 +0000 (21:45 +0000)
committerHaibo Chen <haibo.chen@nxp.com>
Thu, 12 Apr 2018 10:46:23 +0000 (18:46 +0800)
commit05037ebe075568f9a835e67ac786b1198cc524de
treeeb7ef00d55bbf196ae87cce3a943c40fea0312c9
parent702204d84630098c994b24dcdaf8b41eed7633bd
drivers/firmware: Expose psci_get_version through psci_ops structure

commit d68e3ba5303f upstream.

Entry into recent versions of ARM Trusted Firmware will invalidate the CPU
branch predictor state in order to protect against aliasing attacks.

This patch exposes the PSCI "VERSION" function via psci_ops, so that it
can be invoked outside of the PSCI driver where necessary.

Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Alex Shi <alex.shi@linaro.org>
drivers/firmware/psci.c
include/linux/psci.h