Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 515c6faf authored by Nicolai Hähnle's avatar Nicolai Hähnle Committed by Alex Deucher
Browse files

drm/amd/sched: rename amd_sched_entity_pop_job



The function does not actually remove the job from the FIFO, so "peek"
describes it better.

Signed-off-by: default avatarNicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarAndres Rodriguez <andresx7@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c38e0691
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
@@ -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;