SPM: Remame the thread function 'thrd_wait_on()'
The thread function 'thrd_wait_on()' actually sets the thread
state to blocked, the name is confusing and may indicate inside
the function CPU is blocked and waits for some signals.
This patch changes the function name to 'thrd_set_wait()'.
Signed-off-by: Mingyang Sun <mingyang.sun@arm.com>
Change-Id: Iad29e2db89f8e5ccb34022506afb3f8c7d188d6b
diff --git a/secure_fw/spm/ffm/backend_ipc.c b/secure_fw/spm/ffm/backend_ipc.c
index 8a0037e..11a4235 100644
--- a/secure_fw/spm/ffm/backend_ipc.c
+++ b/secure_fw/spm/ffm/backend_ipc.c
@@ -121,7 +121,7 @@
*/
if (!is_tfm_rpc_msg(handle)) {
- thrd_wait_on(&handle->ack_evnt, CURRENT_THREAD);
+ thrd_set_wait(&handle->ack_evnt, CURRENT_THREAD);
}
return PSA_SUCCESS;
@@ -219,7 +219,7 @@
ret_signal = p_pt->signals_asserted & signal_mask;
if (ret_signal == 0) {
p_pt->signals_waiting = signal_mask;
- thrd_wait_on(&p_pt->waitobj, CURRENT_THREAD);
+ thrd_set_wait(&p_pt->waitobj, CURRENT_THREAD);
}
CRITICAL_SECTION_LEAVE(cs_assert);