feat(tftf): refactoring of some tftf function helpers
This refactoring is introduced in order to reuse some useful
function helpers which already exist in the code base,
by moving one function to test_helpers.c
Signed-off-by: Nabil Kahlouche <nabil.kahlouche@arm.com>
Change-Id: If5c24da9062d100419220fe000409b73596e773c
diff --git a/include/common/test_helpers.h b/include/common/test_helpers.h
index 40cc96f..c51c785 100644
--- a/include/common/test_helpers.h
+++ b/include/common/test_helpers.h
@@ -429,4 +429,15 @@
* RXTX buffers.
*/
bool mailbox_init(struct mailbox_buffers mb);
+/*
+ * Utility function to wait for all CPUs other than the caller to be
+ * OFF.
+ */
+void wait_for_non_lead_cpus(void);
+
+/*
+ * Utility function to wait for a given CPU other than the caller to be
+ * OFF.
+ */
+void wait_for_core_to_turn_off(unsigned int mpidr);
#endif /* __TEST_HELPERS_H__ */