diff options
author | Arvind Yadav <Arvind.Yadav@amd.com> | 2022-09-14 18:43:16 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2022-09-16 15:53:20 +0200 |
commit | 6ad9aa476ce23be45de9dcb03edcdbfdf6117c25 (patch) | |
tree | cdda849f9605550cba2a4482d127ac7c3fe11d08 /drivers/dma-buf/dma-fence.c | |
parent | drm/rockchip: remove vop_writel from vop1 driver (diff) | |
download | linux-6ad9aa476ce23be45de9dcb03edcdbfdf6117c25.tar.xz linux-6ad9aa476ce23be45de9dcb03edcdbfdf6117c25.zip |
dma-buf: Remove the signaled bit status check
Remove the signaled bit status check because it is returning
early when the fence is already signaled and
__dma_fence_enable_signaling is checking the status of signaled
bit again.
Signed-off-by: Arvind Yadav <Arvind.Yadav@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220914164321.2156-2-Arvind.Yadav@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/dma-buf/dma-fence.c')
-rw-r--r-- | drivers/dma-buf/dma-fence.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c index 066400ed8841..64c99739ad23 100644 --- a/drivers/dma-buf/dma-fence.c +++ b/drivers/dma-buf/dma-fence.c @@ -601,9 +601,6 @@ void dma_fence_enable_sw_signaling(struct dma_fence *fence) { unsigned long flags; - if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags)) - return; - spin_lock_irqsave(fence->lock, flags); __dma_fence_enable_signaling(fence); spin_unlock_irqrestore(fence->lock, flags); |