summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-06-30 10:52:03 +0200
committerAlex Deucher <alexander.deucher@amd.com>2016-07-07 15:06:11 -0400
commit595a9cd68c132e474ee5daf97067d4d15c618739 (patch)
treebd49bec6ea57e468e347020f9884ae36f1dacea6 /drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
parenta5fb4ec29c74a16ce1c269e52bc85ca86ee41e81 (diff)
downloadop-kernel-dev-595a9cd68c132e474ee5daf97067d4d15c618739.zip
op-kernel-dev-595a9cd68c132e474ee5daf97067d4d15c618739.tar.gz
drm/amdgpu: remove fence parameter from amd_sched_job_init
We return the fence as part of the job structur anyway, no need to do this twice. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/scheduler/gpu_scheduler.c')
-rw-r--r--drivers/gpu/drm/amd/scheduler/gpu_scheduler.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
index 2baedc4e..3405372 100644
--- a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
+++ b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
@@ -403,7 +403,7 @@ void amd_sched_entity_push_job(struct amd_sched_job *sched_job)
int amd_sched_job_init(struct amd_sched_job *job,
struct amd_gpu_scheduler *sched,
struct amd_sched_entity *entity,
- void *owner, struct fence **fence)
+ void *owner)
{
job->sched = sched;
job->s_entity = entity;
@@ -415,8 +415,6 @@ int amd_sched_job_init(struct amd_sched_job *job,
INIT_LIST_HEAD(&job->node);
INIT_DELAYED_WORK(&job->work_tdr, amd_sched_job_timedout);
- if (fence)
- *fence = &job->s_fence->finished;
return 0;
}
OpenPOWER on IntegriCloud