]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf73e14a854bfd2130bb7b36d01267318bd11d5be
treeccb22c1a6f07a1fb12cf9843ef40fe66755bc4db
parentdd333bca25f0fca8b4f168363e42b9a16eefb9d9
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