]> 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)
commite8aaf0b37ed22d65d56449a021089305bae419ef
tree09007391e37f7d88ccd6f36a4122d0c53299064b
parentc0fda7c7b5aac02aa25230ee3e1ea50dde6c2686
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