summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2015-08-20 17:12:50 +0300
committerAlex Deucher <alexander.deucher@amd.com>2015-08-25 17:49:57 +0300
commit6c859274f363be9dc13f8849bdc59bb64f922f26 (patch)
treef4c59a2c79d6932a0b1ccc2f18eb2726e7414683 /drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
parent87e0a87dabdbe9e1698ef85c620c4110b04992a0 (diff)
downloadlinux-6c859274f363be9dc13f8849bdc59bb64f922f26.tar.xz
drm/amdgpu: fix and cleanup amd_sched_entity_push_job
Calling schedule() is probably the worse things we can do. 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.h')
-rw-r--r--drivers/gpu/drm/amd/scheduler/gpu_scheduler.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
index df365abaa125..46b528d41f7f 100644
--- a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
+++ b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
@@ -49,7 +49,6 @@ struct amd_sched_entity {
wait_queue_head_t wait_queue;
uint64_t fence_context;
char name[20];
- bool need_wakeup;
};
/**
@@ -119,14 +118,13 @@ amd_sched_create(struct amd_sched_backend_ops *ops,
uint32_t ring, uint32_t hw_submission);
int amd_sched_destroy(struct amd_gpu_scheduler *sched);
-int amd_sched_push_job(struct amd_sched_job *sched_job);
-
int amd_sched_entity_init(struct amd_gpu_scheduler *sched,
struct amd_sched_entity *entity,
struct amd_sched_rq *rq,
uint32_t jobs);
int amd_sched_entity_fini(struct amd_gpu_scheduler *sched,
struct amd_sched_entity *entity);
+int amd_sched_entity_push_job(struct amd_sched_job *sched_job);
struct amd_sched_fence *amd_sched_fence_create(
struct amd_sched_entity *s_entity);