Skip to content
Snippets Groups Projects
Commit 4ec744e6 authored by Lucas Sinn's avatar Lucas Sinn Committed by Tomeu Vizoso
Browse files

HACK: driver: rknpu: Fix system interrupt signal cost rknpu wait error

Using wait_event_timeout() replace wait_event_interruptible_timeout().
parent 49bfd19b
No related branches found
No related tags found
No related merge requests found
......@@ -166,10 +166,10 @@ static inline int rknpu_job_wait(struct rknpu_job *job)
subcore_data = &rknpu_dev->subcore_datas[core_index];
do {
ret = wait_event_interruptible_timeout(
subcore_data->job_done_wq,
job->flags & RKNPU_JOB_DONE || rknpu_dev->soft_reseting,
msecs_to_jiffies(args->timeout));
ret = wait_event_timeout(subcore_data->job_done_wq,
job->flags & RKNPU_JOB_DONE ||
rknpu_dev->soft_reseting,
msecs_to_jiffies(args->timeout));
if (++wait_count >= 3)
break;
} while (ret == 0 && job->in_queue[core_index]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment