OSDN Git Service

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)
commit214a91e6bfabaa6cbfa692df8732000aab050795
tree09007391e37f7d88ccd6f36a4122d0c53299064b
parent1650c14b459ff9c85767746f1ef795a780653128
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