The workqueue must be terminated after the spinlock
has been released. However, that is missing when
handing of suspend, so fix it.
BUG: workqueue leaked lock or atomic: kworker/u16:8/0x00000001/5856
Change-Id: I6f9a36095dd9673dd57e38f24a3d306e1407529a
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
list_add_tail(&task->node, &g2d_dev->tasks_prepared);
change_task_state_prepared(task);
- if (!!(g2d_dev->state & (1 << G2D_DEVICE_STATE_SUSPEND)))
- return;
-
- g2d_execute_task(g2d_dev, task);
+ if (!(g2d_dev->state & (1 << G2D_DEVICE_STATE_SUSPEND)))
+ g2d_execute_task(g2d_dev, task);
spin_unlock_irqrestore(&g2d_dev->lock_task, flags);
return;