diff options
author | monk.liu <monk.liu@amd.com> | 2015-07-30 06:28:12 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-17 16:50:48 -0400 |
commit | 7f06c236b964db3d8d086c5a0087b2eb4de3bf7a (patch) | |
tree | 37893ae39ea28e71e1066ce10dca5b9318784e96 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | e29551556e055f463fb80cfb07e1cb15641e60a3 (diff) |
drm/amdgpu: move wait_queue_head from adev to ring (v2)
thus unnecessary wake up could be avoid between rings
v2:
move wait_queue_head to fence_drv from ring
Signed-off-by: monk.liu <monk.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 5f32f859230b..98b47601b30a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -391,6 +391,7 @@ struct amdgpu_fence_driver { | |||
391 | struct amdgpu_irq_src *irq_src; | 391 | struct amdgpu_irq_src *irq_src; |
392 | unsigned irq_type; | 392 | unsigned irq_type; |
393 | struct delayed_work lockup_work; | 393 | struct delayed_work lockup_work; |
394 | wait_queue_head_t fence_queue; | ||
394 | }; | 395 | }; |
395 | 396 | ||
396 | /* some special values for the owner field */ | 397 | /* some special values for the owner field */ |
@@ -2036,7 +2037,6 @@ struct amdgpu_device { | |||
2036 | struct amdgpu_irq_src hpd_irq; | 2037 | struct amdgpu_irq_src hpd_irq; |
2037 | 2038 | ||
2038 | /* rings */ | 2039 | /* rings */ |
2039 | wait_queue_head_t fence_queue; | ||
2040 | unsigned fence_context; | 2040 | unsigned fence_context; |
2041 | struct mutex ring_lock; | 2041 | struct mutex ring_lock; |
2042 | unsigned num_rings; | 2042 | unsigned num_rings; |