drm/scheduler: Essentialize the job done callback
authorLuben Tuikov <luben.tuikov@amd.com>
Fri, 4 Dec 2020 03:17:20 +0000 (22:17 -0500)
committerChristian König <christian.koenig@amd.com>
Tue, 8 Dec 2020 13:38:09 +0000 (14:38 +0100)
commit71173e787cab9db4ca1fa6229477cb3d254bc285
treeccb22c1a6f07a1fb12cf9843ef40fe66755bc4db
parent6efa4b465cfdaa9be251ba043253e302ddb9976f
drm/scheduler: Essentialize the job done callback

The job done callback is called from various
places, in two ways: in job done role, and
as a fence callback role.

Essentialize the callback to an atom
function to just complete the job,
and into a second function as a prototype
of fence callback which calls to complete
the job.

This is used in latter patches by the completion
code.

Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/405574/
Cc: Alexander Deucher <Alexander.Deucher@amd.com>
Cc: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/scheduler/sched_main.c