summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2015-08-20 18:08:25 +0300
committerAlex Deucher <alexander.deucher@amd.com>2015-08-25 17:46:02 +0300
commitb034b572f2823122d56cd0d235158873f84c7c23 (patch)
tree803cc08811f2584e9076f9a774004b403a50c98a /drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
parentd54fdb94b2fd4c989d498f69e8bbf4189fde42ef (diff)
downloadlinux-b034b572f2823122d56cd0d235158873f84c7c23.tar.xz
drm/amdgpu: remove prepare_job callback
Not used any more. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/scheduler/gpu_scheduler.c')
-rw-r--r--drivers/gpu/drm/amd/scheduler/gpu_scheduler.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
index 37badd6292cb..2ab63d223891 100644
--- a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
+++ b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
@@ -300,12 +300,8 @@ static int amd_sched_main(void *param)
r = kfifo_out(&c_entity->job_queue, &job, sizeof(void *));
if (r != sizeof(void *))
continue;
- r = 0;
- if (sched->ops->prepare_job)
- r = sched->ops->prepare_job(sched, c_entity, job);
- if (!r) {
- atomic_inc(&sched->hw_rq_count);
- }
+ atomic_inc(&sched->hw_rq_count);
+
mutex_lock(&sched->sched_lock);
fence = sched->ops->run_job(sched, c_entity, job);
if (fence) {