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>
This commit is contained in:
@@ -129,9 +129,8 @@ struct msm_display_info {
|
||||
/* Commit/Event thread specific structure */
|
||||
struct msm_drm_thread {
|
||||
struct drm_device *dev;
|
||||
struct task_struct *thread;
|
||||
unsigned int crtc_id;
|
||||
struct kthread_worker worker;
|
||||
struct kthread_worker *worker;
|
||||
};
|
||||
|
||||
struct msm_drm_private {
|
||||
|
Reference in New Issue
Block a user