Commit b034b572 authored by Christian König's avatar Christian König Committed by Alex Deucher

drm/amdgpu: remove prepare_job callback

Not used any more.
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarChunming Zhou <david1.zhou@amd.com>
parent d54fdb94
...@@ -300,12 +300,8 @@ static int amd_sched_main(void *param) ...@@ -300,12 +300,8 @@ static int amd_sched_main(void *param)
r = kfifo_out(&c_entity->job_queue, &job, sizeof(void *)); r = kfifo_out(&c_entity->job_queue, &job, sizeof(void *));
if (r != sizeof(void *)) if (r != sizeof(void *))
continue; 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); mutex_lock(&sched->sched_lock);
fence = sched->ops->run_job(sched, c_entity, job); fence = sched->ops->run_job(sched, c_entity, job);
if (fence) { if (fence) {
......
...@@ -93,9 +93,6 @@ static inline struct amd_sched_fence *to_amd_sched_fence(struct fence *f) ...@@ -93,9 +93,6 @@ static inline struct amd_sched_fence *to_amd_sched_fence(struct fence *f)
* these functions should be implemented in driver side * these functions should be implemented in driver side
*/ */
struct amd_sched_backend_ops { struct amd_sched_backend_ops {
int (*prepare_job)(struct amd_gpu_scheduler *sched,
struct amd_sched_entity *c_entity,
struct amd_sched_job *job);
struct fence *(*run_job)(struct amd_gpu_scheduler *sched, struct fence *(*run_job)(struct amd_gpu_scheduler *sched,
struct amd_sched_entity *c_entity, struct amd_sched_entity *c_entity,
struct amd_sched_job *job); struct amd_sched_job *job);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment