]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/amdgpu: document amdgpu_sync_get_fence
authorChristian König <christian.koenig@amd.com>
Mon, 23 May 2016 14:19:44 +0000 (16:19 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 18:51:19 +0000 (14:51 -0400)
It's not obvious what it should do.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c

index 34a92808bbd4dabc7ad7f62e4d5beec259bb6f82..e0ff1a1a6051bf01c9b572abdd70f279f679f2a5 100644 (file)
@@ -297,6 +297,13 @@ int amdgpu_sync_cycle_fences(struct amdgpu_sync *dst, struct amdgpu_sync *src,
        return 0;
 }
 
+/**
+ * amdgpu_sync_get_fence - get the next fence from the sync object
+ *
+ * @sync: sync object to use
+ *
+ * Get and removes the next fence from the sync object not signaled yet.
+ */
 struct fence *amdgpu_sync_get_fence(struct amdgpu_sync *sync)
 {
        struct amdgpu_sync_entry *e;