OSDN Git Service

drm/msm: use kthread_create_worker instead of kthread_run
authorBernard <bernard@vivo.com>
Tue, 21 Jul 2020 01:33:03 +0000 (09:33 +0800)
committerRob Clark <robdclark@chromium.org>
Fri, 31 Jul 2020 13:46:17 +0000 (06:46 -0700)
commit1041dee2178ffd59e2c693426475c21594f9db86
tree51baabd6f1a821862e6063eef7fabbecb808395b
parent974b7115a73d8d3ff77cfd6f69408d20c1bb7d06
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>
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_drv.h