mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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: Jeykumar Sankaran <jsanka@codeaurora.org> Signed-off-by: Sean Paul <seanpaul@chromium.org>
This commit is contained in:
parent
7f0bf1c09f
commit
3c12568271
1 changed files with 2 additions and 4 deletions
|
@ -291,14 +291,12 @@ static int msm_drm_uninit(struct device *dev)
|
|||
/* clean up display commit/event worker threads */
|
||||
for (i = 0; i < priv->num_crtcs; i++) {
|
||||
if (priv->disp_thread[i].thread) {
|
||||
kthread_flush_worker(&priv->disp_thread[i].worker);
|
||||
kthread_stop(priv->disp_thread[i].thread);
|
||||
kthread_destroy_worker(&priv->disp_thread[i].worker);
|
||||
priv->disp_thread[i].thread = NULL;
|
||||
}
|
||||
|
||||
if (priv->event_thread[i].thread) {
|
||||
kthread_flush_worker(&priv->event_thread[i].worker);
|
||||
kthread_stop(priv->event_thread[i].thread);
|
||||
kthread_destroy_worker(&priv->event_thread[i].worker);
|
||||
priv->event_thread[i].thread = NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue