]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/sched: move adding finish callback to amd_sched_job_begin
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 28 Sep 2017 09:37:02 +0000 (11:37 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Oct 2017 21:44:27 +0000 (17:44 -0400)
commit683c2838304927ce9f8fd96b2643e7bb5e444da4
tree09007391e37f7d88ccd6f36a4122d0c53299064b
parent13ec6baca86889953f2f038ebbc1f25aec611bbe
drm/amd/sched: move adding finish callback to amd_sched_job_begin

The finish callback is responsible for removing the job from the ring
mirror list, among other things. It makes sense to add it as callback
in the place where the job is added to the ring mirror list.

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>
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c