| .. | .. |
|---|
| 166 | 166 | subcore_data = &rknpu_dev->subcore_datas[core_index]; |
|---|
| 167 | 167 | |
|---|
| 168 | 168 | do { |
|---|
| 169 | | - ret = wait_event_interruptible_timeout( |
|---|
| 170 | | - subcore_data->job_done_wq, |
|---|
| 171 | | - job->flags & RKNPU_JOB_DONE || rknpu_dev->soft_reseting, |
|---|
| 172 | | - msecs_to_jiffies(args->timeout)); |
|---|
| 169 | + ret = wait_event_timeout(subcore_data->job_done_wq, |
|---|
| 170 | + job->flags & RKNPU_JOB_DONE || |
|---|
| 171 | + rknpu_dev->soft_reseting, |
|---|
| 172 | + msecs_to_jiffies(args->timeout)); |
|---|
| 173 | 173 | if (++wait_count >= 3) |
|---|
| 174 | 174 | break; |
|---|
| 175 | 175 | } while (ret == 0 && job->in_queue[core_index]); |
|---|