summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2015-08-19 16:12:15 +0200
committerAlex Deucher <alexander.deucher@amd.com>2015-08-25 10:39:31 -0400
commitc746ba222363d2e0b0316b1c0bda21e2646b66f2 (patch)
tree0f6c7bfd32d3846caf7bd41d5b19702275febac7 /drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
parentce882e6dc241ab8dded0eeeb33a86482d44a5689 (diff)
downloadblackbird-op-linux-c746ba222363d2e0b0316b1c0bda21e2646b66f2.tar.gz
blackbird-op-linux-c746ba222363d2e0b0316b1c0bda21e2646b66f2.zip
drm/amdgpu: rework scheduler submission handling.
Remove active_hw_rq and it's protecting queue_lock, they are unused. User 32bit atomic for hw_rq_count, 64bits for counting to three is a bit overkill. Cleanup the function name and remove incorrect comments. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/scheduler/gpu_scheduler.h')
-rw-r--r--drivers/gpu/drm/amd/scheduler/gpu_scheduler.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
index d328e968beb3..81c00daa23fb 100644
--- a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
+++ b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
@@ -74,7 +74,6 @@ struct amd_sched_fence {
};
struct amd_sched_job {
- struct list_head list;
struct fence_cb cb;
struct amd_gpu_scheduler *sched;
struct amd_sched_entity *s_entity;
@@ -115,8 +114,7 @@ struct amd_gpu_scheduler {
struct task_struct *thread;
struct amd_sched_rq sched_rq;
struct amd_sched_rq kernel_rq;
- struct list_head active_hw_rq;
- atomic64_t hw_rq_count;
+ atomic_t hw_rq_count;
struct amd_sched_backend_ops *ops;
uint32_t ring_id;
uint32_t granularity; /* in ms unit */
@@ -124,7 +122,6 @@ struct amd_gpu_scheduler {
wait_queue_head_t wait_queue;
struct amd_sched_entity *current_entity;
struct mutex sched_lock;
- spinlock_t queue_lock;
uint32_t hw_submission_limit;
};
OpenPOWER on IntegriCloud