1d05790e68d8d0a3bbc686ca3232f6e54dfc000e

The `fastrpc_dspsignal_wait` function currently checks the signal state before waiting for a signal from the DSP. However, if the signal is already received before the check, it results in an infinite loop, causing excessive resource usage. This change addresses the race condition by checking both the pending and signaled states. If the signal is not in the pending state, it directly checks for the signaled state, resets the states, and returns to avoid looping. Change-Id: I00f80780cccf5a7b0e95f961607042efe62d9d30 Signed-off-by: quic_anane <quic_anane@quicinc.com>
Description
No description provided
Languages
C
98.7%
C++
0.9%
Makefile
0.3%
Starlark
0.1%