]> git.baikalelectronics.ru Git - kernel.git/commit
firmware/psci: Expose SMCCC version through psci_ops
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 6 Feb 2018 17:56:17 +0000 (17:56 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 6 Feb 2018 22:54:11 +0000 (22:54 +0000)
commit269b4dae6555c5cd1ab777532c6f4eaa19112e4b
tree2e68319038f14390223f645e4b8af4f68219031a
parent537804a0a4130dae7a1c2ef823946339cd5271b1
firmware/psci: Expose SMCCC version through psci_ops

Since PSCI 1.0 allows the SMCCC version to be (indirectly) probed,
let's do that at boot time, and expose the version of the calling
convention as part of the psci_ops structure.

Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/firmware/psci.c
include/linux/psci.h