]> asedeno.scripts.mit.edu Git - linux.git/commit
ARM64: kernel: psci: factor out probe function
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 24 Mar 2015 17:58:52 +0000 (17:58 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 26 Mar 2015 15:13:10 +0000 (15:13 +0000)
commit48eb3c8a8b4fffb48f64019e1f68a7de4db4cc43
treed8d4bd334a82bf649275c706167b5899392c749b
parentd8f4f161e31f3ee9768467344e6cc31a0b9d9249
ARM64: kernel: psci: factor out probe function

PSCI v0.2+ versions provide a specific PSCI call (PSCI_VERSION) to
detect the PSCI version at run-time. Current PSCI v0.2 init code
carries out the version probing in the PSCI 0.2 DT init function,
but the version probing does not depend on DT so it can be factored out
in order to make it available to other boot mechanisms (ie ACPI) to
reuse. The psci_probe() probing function can be easily extended
to add detection and initialization of PSCI functions defined in
PSCI versions >0.2.

Cc: Sudeep Holla <sudeep.holla@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/psci.c