diff options
author | Bernard <bernard@vivo.com> | 2020-07-21 09:33:03 +0800 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2020-07-31 06:46:17 -0700 |
commit | 1041dee2178ffd59e2c693426475c21594f9db86 (patch) | |
tree | 51baabd6f1a821862e6063eef7fabbecb808395b /drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | |
parent | 974b7115a73d8d3ff77cfd6f69408d20c1bb7d06 (diff) | |
download | linux-1041dee2178ffd59e2c693426475c21594f9db86.tar.gz linux-1041dee2178ffd59e2c693426475c21594f9db86.tar.bz2 linux-1041dee2178ffd59e2c693426475c21594f9db86.zip |
drm/msm: use kthread_create_worker instead of kthread_run
Use kthread_create_worker to simplify the code and optimise
the manager struct: msm_drm_thread. With this change, we
could remove struct element (struct task_struct *thread &
struct kthread_worker worker), instead, use one point (struct
kthread_worker *worker).
Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c')
-rw-r--r-- | drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c index 969d95aa873c..f272a8d0f95b 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c @@ -396,7 +396,7 @@ static void dpu_crtc_frame_event_cb(void *data, u32 event) fevent->event = event; fevent->crtc = crtc; fevent->ts = ktime_get(); - kthread_queue_work(&priv->event_thread[crtc_id].worker, &fevent->work); + kthread_queue_work(priv->event_thread[crtc_id].worker, &fevent->work); } void dpu_crtc_complete_commit(struct drm_crtc *crtc) |