Commit 3c125682 authored by Jeykumar Sankaran's avatar Jeykumar Sankaran Committed by Sean Paul

drm/msm/dpu: use kthread_destroy_worker to release msm workers

use kthread_destroy_worker to destroy workers and
release their associated kthreads.

changes in v3:
	- introduced in the series
changes in v4:
	- none
changes in v5:
	- none
Signed-off-by: default avatarJeykumar Sankaran <jsanka@codeaurora.org>
Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
parent 7f0bf1c0
...@@ -291,14 +291,12 @@ static int msm_drm_uninit(struct device *dev) ...@@ -291,14 +291,12 @@ static int msm_drm_uninit(struct device *dev)
/* clean up display commit/event worker threads */ /* clean up display commit/event worker threads */
for (i = 0; i < priv->num_crtcs; i++) { for (i = 0; i < priv->num_crtcs; i++) {
if (priv->disp_thread[i].thread) { if (priv->disp_thread[i].thread) {
kthread_flush_worker(&priv->disp_thread[i].worker); kthread_destroy_worker(&priv->disp_thread[i].worker);
kthread_stop(priv->disp_thread[i].thread);
priv->disp_thread[i].thread = NULL; priv->disp_thread[i].thread = NULL;
} }
if (priv->event_thread[i].thread) { if (priv->event_thread[i].thread) {
kthread_flush_worker(&priv->event_thread[i].worker); kthread_destroy_worker(&priv->event_thread[i].worker);
kthread_stop(priv->event_thread[i].thread);
priv->event_thread[i].thread = NULL; priv->event_thread[i].thread = NULL;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment