quic_anane 1d05790e68 dsp-kernel: Handle race-condition in dsp signal
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>
2024-03-05 14:15:25 -08:00
2022-10-20 10:29:34 -07:00
2024-02-06 11:00:03 +05:30
2023-06-12 11:04:11 -07:00
2023-01-26 23:23:19 -08:00
2023-01-26 23:23:19 -08:00
Description
No description provided
226 MiB
Languages
C 98.7%
C++ 0.9%
Makefile 0.3%
Starlark 0.1%