diff options
author | Inki Dae <inki.dae@samsung.com> | 2012-09-10 21:45:36 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2012-10-03 21:06:00 -0400 |
commit | 6b6bae24c7caac8f2a80f24e5ff5e82276eb03fd (patch) | |
tree | 603e1633c9f20ea3baff7392dfa30df41784625e | |
parent | bcf4cef94294992f7cd11d5a90fa58b0eae6c795 (diff) |
drm/exynos: add pid to g2d_runqueue_node
this patch adds pid to g2d_runqueue_node as member to identify
which process owns this node.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_g2d.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c index 1065e90d0919..dcbc4cb423be 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c | |||
@@ -122,6 +122,7 @@ struct g2d_runqueue_node { | |||
122 | struct list_head list; | 122 | struct list_head list; |
123 | struct list_head run_cmdlist; | 123 | struct list_head run_cmdlist; |
124 | struct list_head event_list; | 124 | struct list_head event_list; |
125 | pid_t pid; | ||
125 | struct completion complete; | 126 | struct completion complete; |
126 | int async; | 127 | int async; |
127 | }; | 128 | }; |
@@ -679,6 +680,7 @@ int exynos_g2d_exec_ioctl(struct drm_device *drm_dev, void *data, | |||
679 | } | 680 | } |
680 | 681 | ||
681 | mutex_lock(&g2d->runqueue_mutex); | 682 | mutex_lock(&g2d->runqueue_mutex); |
683 | runqueue_node->pid = current->pid; | ||
682 | list_add_tail(&runqueue_node->list, &g2d->runqueue); | 684 | list_add_tail(&runqueue_node->list, &g2d->runqueue); |
683 | if (!g2d->runqueue_node) | 685 | if (!g2d->runqueue_node) |
684 | g2d_exec_runqueue(g2d); | 686 | g2d_exec_runqueue(g2d); |