From: jsg Date: Fri, 20 Oct 2023 03:49:31 +0000 (+0000) Subject: dma-buf: add dma_fence_timestamp helper X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d156b7d56e2fd00836e87e8524d0b9aa5b2cd7f5;p=openbsd dma-buf: add dma_fence_timestamp helper From Christian Koenig d67b5a2b97b6e8959117ff71fc2daa30e66c8290 in linux-6.1.y/6.1.59 b83ce9cb4a465b8f9a3fa45561b721a9551f60e3 in mainline linux --- diff --git a/sys/dev/pci/drm/scheduler/sched_main.c b/sys/dev/pci/drm/scheduler/sched_main.c index 4defaaf9b7a..b574dc8b582 100644 --- a/sys/dev/pci/drm/scheduler/sched_main.c +++ b/sys/dev/pci/drm/scheduler/sched_main.c @@ -847,7 +847,7 @@ drm_sched_get_cleanup_job(struct drm_gpu_scheduler *sched) if (next) { next->s_fence->scheduled.timestamp = - job->s_fence->finished.timestamp; + dma_fence_timestamp(&job->s_fence->finished); /* start TO timer for next job */ drm_sched_start_timeout(sched); }