diff options
Diffstat (limited to 'mali_kbase/mali_kbase_sync_file.c')
-rw-r--r-- | mali_kbase/mali_kbase_sync_file.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mali_kbase/mali_kbase_sync_file.c b/mali_kbase/mali_kbase_sync_file.c index 2be6699..f52ad43 100644 --- a/mali_kbase/mali_kbase_sync_file.c +++ b/mali_kbase/mali_kbase_sync_file.c @@ -190,14 +190,14 @@ static void kbase_fence_wait_callback(struct dma_fence *fence, kbase_fence_dep_count_set(katom, -1); /* To prevent a potential deadlock we schedule the work onto the - * job_done_wq workqueue + * job_done_worker kthread * * The issue is that we may signal the timeline while holding * kctx->jctx.lock and the callbacks are run synchronously from * sync_timeline_signal. So we simply defer the work. */ - INIT_WORK(&katom->work, kbase_sync_fence_wait_worker); - queue_work(kctx->jctx.job_done_wq, &katom->work); + kthread_init_work(&katom->work, kbase_sync_fence_wait_worker); + kthread_queue_work(&kctx->kbdev->job_done_worker, &katom->work); } } @@ -239,8 +239,8 @@ int kbase_sync_fence_in_wait(struct kbase_jd_atom *katom) /* We should cause the dependent jobs in the bag to be failed, * to do this we schedule the work queue to complete this job */ - INIT_WORK(&katom->work, kbase_sync_fence_wait_worker); - queue_work(katom->kctx->jctx.job_done_wq, &katom->work); + kthread_init_work(&katom->work, kbase_sync_fence_wait_worker); + kthread_queue_work(&katom->kctx->kbdev->job_done_worker, &katom->work); } return 1; /* completion to be done later by callback/worker */ |