diff options
author | YoungJun Cho <yj44.cho@samsung.com> | 2014-05-26 10:17:18 +0200 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2014-06-02 02:07:13 +0900 |
commit | 7f5af0597be7cb2eae42fa2ce614d5805b72a74e (patch) | |
tree | 8519df077152d81d13dbde33895b356c66ded9e4 /drivers/gpu/drm/exynos/exynos_drm_ipp.h | |
parent | 4e4fe5546de3cfd97921f24d9df4c4f323941729 (diff) | |
download | lwn-7f5af0597be7cb2eae42fa2ce614d5805b72a74e.tar.gz lwn-7f5af0597be7cb2eae42fa2ce614d5805b72a74e.zip |
drm/exynos: ipp: add cmd_lock for cmd_list
This patch adds cmd_lock for cmd_list synchronization.
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
Acked-by: Seong-Woo Kim <sw0312.kim@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Tested-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_ipp.h')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_ipp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_ipp.h b/drivers/gpu/drm/exynos/exynos_drm_ipp.h index fbb80ac5311d..09cb5a20540c 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_ipp.h +++ b/drivers/gpu/drm/exynos/exynos_drm_ipp.h @@ -148,6 +148,7 @@ struct exynos_drm_ipp_ops { * @event_workq: event work queue. * @c_node: current command information. * @cmd_list: list head for command information. + * @cmd_lock: lock for synchronization of access to cmd_list. * @prop_list: property informations of current ipp driver. * @check_property: check property about format, size, buffer. * @reset: reset ipp block. @@ -165,6 +166,7 @@ struct exynos_drm_ippdrv { struct workqueue_struct *event_workq; struct drm_exynos_ipp_cmd_node *c_node; struct list_head cmd_list; + struct mutex cmd_lock; struct drm_exynos_ipp_prop_list prop_list; int (*check_property)(struct device *dev, |