diff options
Diffstat (limited to 'drivers/gpu/drm/amd/scheduler/gpu_scheduler.c')
-rw-r--r-- | drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c index 5a1ece2774b5..764606ce3541 100644 --- a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c +++ b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | |||
@@ -121,7 +121,7 @@ amd_sched_rq_select_entity(struct amd_sched_rq *rq) | |||
121 | int amd_sched_entity_init(struct amd_gpu_scheduler *sched, | 121 | int amd_sched_entity_init(struct amd_gpu_scheduler *sched, |
122 | struct amd_sched_entity *entity, | 122 | struct amd_sched_entity *entity, |
123 | struct amd_sched_rq *rq, | 123 | struct amd_sched_rq *rq, |
124 | uint32_t jobs) | 124 | uint32_t jobs, atomic_t *guilty) |
125 | { | 125 | { |
126 | int r; | 126 | int r; |
127 | 127 | ||
@@ -132,6 +132,7 @@ int amd_sched_entity_init(struct amd_gpu_scheduler *sched, | |||
132 | INIT_LIST_HEAD(&entity->list); | 132 | INIT_LIST_HEAD(&entity->list); |
133 | entity->rq = rq; | 133 | entity->rq = rq; |
134 | entity->sched = sched; | 134 | entity->sched = sched; |
135 | entity->guilty = guilty; | ||
135 | 136 | ||
136 | spin_lock_init(&entity->rq_lock); | 137 | spin_lock_init(&entity->rq_lock); |
137 | spin_lock_init(&entity->queue_lock); | 138 | spin_lock_init(&entity->queue_lock); |