]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dma-buf/fence: fix fence_is_later v2
authorChristian König <christian.koenig@amd.com>
Mon, 29 Feb 2016 15:53:11 +0000 (10:53 -0500)
committerSumit Semwal <sumit.semwal@linaro.org>
Thu, 3 Mar 2016 03:32:32 +0000 (09:02 +0530)
commit8f496d3fcc9df8823e36a023a2fd8b08c7993f4c
tree712d9bda3e522b67f56027a814794322e57fa81e
parentf983cd32cd5d2ec47ac8868f387bad15e8f11f85
dma-buf/fence: fix fence_is_later v2

A fence is never later than itself. This caused a bunch of overhead for AMDGPU.

v2: simplify check as suggested by Michel.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
include/linux/fence.h