Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/include/linux Provide dma_resv_locking...
details: https://anonhg.NetBSD.org/src/rev/4dff07cf6d4f
branches: trunk
changeset: 1028321:4dff07cf6d4f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 10:37:56 2021 +0000
description:
Provide dma_resv_locking_ctx
Author: Maya Rashish <maya%NetBSD.org@localhost>
diffstat:
sys/external/bsd/drm2/include/linux/dma-resv.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 1f5399e71429 -r 4dff07cf6d4f sys/external/bsd/drm2/include/linux/dma-resv.h
--- a/sys/external/bsd/drm2/include/linux/dma-resv.h Sun Dec 19 10:37:47 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/dma-resv.h Sun Dec 19 10:37:56 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dma-resv.h,v 1.7 2021/12/19 10:37:47 riastradh Exp $ */
+/* $NetBSD: dma-resv.h,v 1.8 2021/12/19 10:37:56 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -141,4 +141,10 @@
return robj->fence_excl != NULL;
}
+static inline struct ww_acquire_ctx *
+dma_resv_locking_ctx(struct dma_resv *robj)
+{
+ return robj->lock.wwm_u.ctx;
+}
+
#endif /* _LINUX_DMA_RESV_H_ */
Home |
Main Index |
Thread Index |
Old Index