aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSandeep Tripathy <sandeep.tripathy@broadcom.com>2020-08-17 20:22:13 +0530
committerSandeep Tripathy <sandeep.tripathy@broadcom.com>2020-09-03 09:29:22 +0000
commit2274490945695c1da37bc5b708212a40073d7891 (patch)
treec689fa63bf029f76bbf4be7619cb384271ceec5d /include
parenta41ca4c3449c51822d318e295b21d452efac2848 (diff)
downloadtrusted-firmware-a-2274490945695c1da37bc5b708212a40073d7891.tar.gz
psci: utility api to invoke stop for other cores
The API can be used to invoke a 'stop_func' callback for all other cores from any initiating core. Optionally it can also wait for other cores to power down. There may be various use of such API by platform. Ex: Platform may use this to power down all other cores from a crashed core. Signed-off-by: Sandeep Tripathy <sandeep.tripathy@broadcom.com> Change-Id: I4f9dc8a38d419f299c021535d5f1bcc6883106f9
Diffstat (limited to 'include')
-rw-r--r--include/lib/psci/psci_lib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/lib/psci/psci_lib.h b/include/lib/psci/psci_lib.h
index 76c1a8dcf4..1ac45adf79 100644
--- a/include/lib/psci/psci_lib.h
+++ b/include/lib/psci/psci_lib.h
@@ -89,6 +89,8 @@ void psci_warmboot_entrypoint(void);
void psci_register_spd_pm_hook(const spd_pm_ops_t *pm);
void psci_prepare_next_non_secure_ctx(
entry_point_info_t *next_image_info);
+int psci_stop_other_cores(unsigned int wait_ms,
+ void (*stop_func)(u_register_t mpidr));
#endif /* __ASSEMBLER__ */
#endif /* PSCI_LIB_H */