arm: msm: qdsp6v2: update to finite loop

The reason why the original code requires infinite loop
cannot be accounted for. However, it seems reasonable to
wait for 10 minutes.

Change-Id: I057f7ac8a83585abbc4ccd63a721df82f71ea045
Signed-off-by: Patrick Lai <plai@codeaurora.org>
This commit is contained in:
Patrick Lai
2013-01-05 21:23:29 -08:00
committed by Iliyan Malchev
parent 833bf95817
commit 3cf124994d

View File

@@ -38,12 +38,14 @@ dsp_state_cb cb_ptr;
void q6audio_dsp_not_responding(void)
{
int i;
if (cb_ptr)
cb_ptr(DSP_STATE_CRASHED);
if (atomic_add_return(1, &dsp_crash_count) != 1) {
pr_err("q6audio_dsp_not_responding() \
- parking additional crasher...\n");
for (;;)
for (i = 0; i < 600; i++)
msleep(1000);
}
if (dsp_wait_count) {