artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0ef76c
)
add dma_fence_is_later_or_same() for 6.1.66 drm
author
jsg
<jsg@openbsd.org>
Mon, 11 Dec 2023 04:56:54 +0000
(
04:56
+0000)
committer
jsg
<jsg@openbsd.org>
Mon, 11 Dec 2023 04:56:54 +0000
(
04:56
+0000)
sys/dev/pci/drm/include/linux/dma-fence.h
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/include/linux/dma-fence.h
b/sys/dev/pci/drm/include/linux/dma-fence.h
index
b6942e4
..
8c06d39
100644
(file)
--- a/
sys/dev/pci/drm/include/linux/dma-fence.h
+++ b/
sys/dev/pci/drm/include/linux/dma-fence.h
@@
-113,6
+113,14
@@
dma_fence_is_later(struct dma_fence *a, struct dma_fence *b)
return __dma_fence_is_later(a->seqno, b->seqno, a->ops);
}
+static inline bool
+dma_fence_is_later_or_same(struct dma_fence *a, struct dma_fence *b)
+{
+ if (a == b)
+ return true;
+ return dma_fence_is_later(a, b);
+}
+
static inline void
dma_fence_set_error(struct dma_fence *fence, int error)
{