aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2015-09-08 14:22:31 -0400
committerAlex Deucher <alexander.deucher@amd.com>2015-09-23 17:23:39 -0400
commit4f839a243d3b0d8b1a14f4778a87ec4d8ddbf15f (patch)
tree856d9a22af55ae4e8347c14c3d60cd235e79da72 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent5ec92a7692872d656cffe010920fb49c4f51d75f (diff)
drm/amdgpu: more scheduler cleanups v2
Embed the scheduler into the ring structure instead of allocating it. Use the ring name directly instead of the id. v2: rebased, whitespace cleanup Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by: Chunming Zhou<david1.zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 9108b7c7d4a3..57b427f958da 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -433,7 +433,7 @@ int amdgpu_fence_driver_init(struct amdgpu_device *adev);
433void amdgpu_fence_driver_fini(struct amdgpu_device *adev); 433void amdgpu_fence_driver_fini(struct amdgpu_device *adev);
434void amdgpu_fence_driver_force_completion(struct amdgpu_device *adev); 434void amdgpu_fence_driver_force_completion(struct amdgpu_device *adev);
435 435
436void amdgpu_fence_driver_init_ring(struct amdgpu_ring *ring); 436int amdgpu_fence_driver_init_ring(struct amdgpu_ring *ring);
437int amdgpu_fence_driver_start_ring(struct amdgpu_ring *ring, 437int amdgpu_fence_driver_start_ring(struct amdgpu_ring *ring,
438 struct amdgpu_irq_src *irq_src, 438 struct amdgpu_irq_src *irq_src,
439 unsigned irq_type); 439 unsigned irq_type);
@@ -891,7 +891,7 @@ struct amdgpu_ring {
891 struct amdgpu_device *adev; 891 struct amdgpu_device *adev;
892 const struct amdgpu_ring_funcs *funcs; 892 const struct amdgpu_ring_funcs *funcs;
893 struct amdgpu_fence_driver fence_drv; 893 struct amdgpu_fence_driver fence_drv;
894 struct amd_gpu_scheduler *sched; 894 struct amd_gpu_scheduler sched;
895 895
896 spinlock_t fence_lock; 896 spinlock_t fence_lock;
897 struct mutex *ring_lock; 897 struct mutex *ring_lock;