]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfbd24103f595782809c5ac03d5d84ebbc0f0c4d1
tree51baabd6f1a821862e6063eef7fabbecb808395b
parentc561da645ad8f6bab98c8150bd3db6fa170c9463
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