]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
dma-fence: add dma_fence_match_context helper
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 17 Mar 2017 16:34:49 +0000 (17:34 +0100)
committerSumit Semwal <sumit.semwal@linaro.org>
Fri, 17 Mar 2017 18:21:36 +0000 (23:51 +0530)
commitd5b72a2123dfaf9416b1a1177b4be041f8a8b6d4
tree13688abc1a544a75f611e0e8256c528762ddc518
parentbb7d78568814a31a11fa14f1479a9fe51f1582ad
dma-fence: add dma_fence_match_context helper

Add a helper to check if all fences in a fence array are from a given
context. For convenience, the function can also handle being given a
non-array fence.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1489768492-25190-1-git-send-email-p.zabel@pengutronix.de
drivers/dma-buf/dma-fence-array.c
include/linux/dma-fence-array.h