summaryrefslogtreecommitdiffstats
path: root/include/linux/reservation.h
diff options
context:
space:
mode:
authorChristian König2017-08-10 19:01:48 +0200
committerAlex Deucher2017-08-14 19:00:49 +0200
commit7faf952a3030d304334fe527be339b63e9e2745f (patch)
treeb683adcf0d77b936849899e06e7b6f0054a26faa /include/linux/reservation.h
parentdrm/tinydrm: add support for LEGO MINDSTORMS EV3 LCD (diff)
downloadkernel-qcow2-linux-7faf952a3030d304334fe527be339b63e9e2745f.tar.gz
kernel-qcow2-linux-7faf952a3030d304334fe527be339b63e9e2745f.tar.xz
kernel-qcow2-linux-7faf952a3030d304334fe527be339b63e9e2745f.zip
dma-buf: add reservation_object_copy_fences (v2)
Allows us to copy all the fences in a reservation object to another one. v2: handle NULL src_list Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/1502384509-10465-2-git-send-email-alexander.deucher@amd.com
Diffstat (limited to 'include/linux/reservation.h')
-rw-r--r--include/linux/reservation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/reservation.h b/include/linux/reservation.h
index 156cfd330b66..21fc84d82d41 100644
--- a/include/linux/reservation.h
+++ b/include/linux/reservation.h
@@ -254,6 +254,9 @@ int reservation_object_get_fences_rcu(struct reservation_object *obj,
unsigned *pshared_count,
struct dma_fence ***pshared);
+int reservation_object_copy_fences(struct reservation_object *dst,
+ struct reservation_object *src);
+
long reservation_object_wait_timeout_rcu(struct reservation_object *obj,
bool wait_all, bool intr,
unsigned long timeout);