mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
video: rockchip: mpp: common: remove work_lock
Remove work_lock in mpp_taskqueue. Change-Id: Ideda9e23acae5df9aa91136d9d4678d9ee4e2c7e Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -184,15 +184,11 @@ mpp_taskqueue_pop_running(struct mpp_taskqueue *queue,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
static void
|
||||
mpp_taskqueue_trigger_work(struct mpp_taskqueue *queue,
|
||||
struct workqueue_struct *workq)
|
||||
{
|
||||
mutex_lock(&queue->work_lock);
|
||||
queue_work(workq, &queue->work);
|
||||
mutex_unlock(&queue->work_lock);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int mpp_power_on(struct mpp_dev *mpp)
|
||||
@@ -783,7 +779,6 @@ err_put_pdev:
|
||||
int mpp_taskqueue_init(struct mpp_taskqueue *queue,
|
||||
struct mpp_service *srv)
|
||||
{
|
||||
mutex_init(&queue->work_lock);
|
||||
mutex_init(&queue->pending_lock);
|
||||
mutex_init(&queue->running_lock);
|
||||
mutex_init(&queue->mmu_lock);
|
||||
|
||||
@@ -377,8 +377,6 @@ struct mpp_task {
|
||||
};
|
||||
|
||||
struct mpp_taskqueue {
|
||||
/* lock for trigger work */
|
||||
struct mutex work_lock;
|
||||
/* work for taskqueue */
|
||||
struct work_struct work;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user