diff options
author | Nayan Deshmukh <nayan26deshmukh@gmail.com> | 2018-07-20 08:21:05 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-25 16:06:19 -0400 |
commit | cdc50176597cb44ce25eb7331c450058775b8d2a (patch) | |
tree | 3a225ac827c904a893f45677e08c51d75170d179 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
parent | bf314ca3f10d4ba4335808dc678631908881db8b (diff) |
drm/scheduler: modify API to avoid redundancy
entity has a scheduler field and we don't need the sched argument
in any of the functions where entity is provided.
Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index c5d81d6a90e0..4d4575b3bba7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |||
@@ -1232,7 +1232,7 @@ static int amdgpu_cs_submit(struct amdgpu_cs_parser *p, | |||
1232 | job = p->job; | 1232 | job = p->job; |
1233 | p->job = NULL; | 1233 | p->job = NULL; |
1234 | 1234 | ||
1235 | r = drm_sched_job_init(&job->base, &ring->sched, entity, p->filp); | 1235 | r = drm_sched_job_init(&job->base, entity, p->filp); |
1236 | if (r) { | 1236 | if (r) { |
1237 | amdgpu_job_free(job); | 1237 | amdgpu_job_free(job); |
1238 | amdgpu_mn_unlock(p->mn); | 1238 | amdgpu_mn_unlock(p->mn); |