Module Name: src Committed By: riastradh Date: Sun Dec 19 10:37:56 UTC 2021
Modified Files: src/sys/external/bsd/drm2/include/linux: dma-resv.h Log Message: Provide dma_resv_locking_ctx Author: Maya Rashish <m...@netbsd.org> To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/external/bsd/drm2/include/linux/dma-resv.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/include/linux/dma-resv.h diff -u src/sys/external/bsd/drm2/include/linux/dma-resv.h:1.7 src/sys/external/bsd/drm2/include/linux/dma-resv.h:1.8 --- src/sys/external/bsd/drm2/include/linux/dma-resv.h:1.7 Sun Dec 19 10:37:47 2021 +++ src/sys/external/bsd/drm2/include/linux/dma-resv.h Sun Dec 19 10:37:56 2021 @@ -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 @@ dma_resv_has_excl_fence(const struct dma 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_ */