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)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 8 Jan 2018 18:43:38 +0000 (18:43 +0000)
commitd68e3ba5303f7e1099f51fdcd155f5263da8569b
tree26dd6bb5f38353a19ac9f80989f0a30f7dfa7ca6
parent0a0d111d40fd1dc588cc590fab6b55d86ddc71d3
drivers/firmware: Expose psci_get_version through psci_ops structure

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>
drivers/firmware/psci.c
include/linux/psci.h