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:
Herman Chen
2021-03-22 14:30:10 +08:00
committed by Tao Huang
parent 3b04a7c0b8
commit e2d8ad5075
2 changed files with 1 additions and 8 deletions

View File

@@ -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);

View File

@@ -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;