Skip to content

Commit

Permalink
drm/amd/sched: rename amd_sched_entity_pop_job
Browse files Browse the repository at this point in the history
The function does not actually remove the job from the FIFO, so "peek"
describes it better.

Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Andres Rodriguez <andresx7@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Nicolai Hähnle authored and Alex Deucher committed Oct 6, 2017
1 parent c38e069 commit 515c6fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ static bool amd_sched_entity_add_dependency_cb(struct amd_sched_entity *entity)
}

static struct amd_sched_job *
amd_sched_entity_pop_job(struct amd_sched_entity *entity)
amd_sched_entity_peek_job(struct amd_sched_entity *entity)
{
struct amd_gpu_scheduler *sched = entity->sched;
struct amd_sched_job *sched_job;
Expand Down Expand Up @@ -600,7 +600,7 @@ static int amd_sched_main(void *param)
if (!entity)
continue;

sched_job = amd_sched_entity_pop_job(entity);
sched_job = amd_sched_entity_peek_job(entity);
if (!sched_job)
continue;

Expand Down

0 comments on commit 515c6fa

Please sign in to comment.