gpu: host1x: Add job release callback
authorMikko Perttunen <mperttunen@nvidia.com>
Thu, 10 Jun 2021 11:04:44 +0000 (14:04 +0300)
committerThierry Reding <treding@nvidia.com>
Tue, 10 Aug 2021 12:41:02 +0000 (14:41 +0200)
commit17a298e9ac7c011e64a9c0b6f807b43f9af22eac
tree6102c1eca9012643d6613db2ff08cdf26a142560
parentc78f837ae3d1e532ff4eb90155b42d7a2e892a3f
gpu: host1x: Add job release callback

Add a callback field to the job structure, to be called just before
the job is to be freed. This allows the job's submitter to clean
up any of its own state, like decrement runtime PM refcounts.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/job.c
include/linux/host1x.h