drm/exynos: add pid to g2d_runqueue_node
authorInki Dae <inki.dae@samsung.com>
Tue, 11 Sep 2012 01:45:36 +0000 (10:45 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 4 Oct 2012 01:06:00 +0000 (10:06 +0900)
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>
drivers/gpu/drm/exynos/exynos_drm_g2d.c

index 1065e90d09199414585adca93e2e586b9fe215f0..dcbc4cb423be95b47e15a1fc92565960ace35158 100644 (file)
@@ -122,6 +122,7 @@ struct g2d_runqueue_node {
        struct list_head        list;
        struct list_head        run_cmdlist;
        struct list_head        event_list;
+       pid_t                   pid;
        struct completion       complete;
        int                     async;
 };
@@ -679,6 +680,7 @@ int exynos_g2d_exec_ioctl(struct drm_device *drm_dev, void *data,
        }
 
        mutex_lock(&g2d->runqueue_mutex);
+       runqueue_node->pid = current->pid;
        list_add_tail(&runqueue_node->list, &g2d->runqueue);
        if (!g2d->runqueue_node)
                g2d_exec_runqueue(g2d);