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)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 21 Mar 2016 08:26:50 +0000 (09:26 +0100)
commitb47bcb93bbf201e9c5af698945755efeb60c0bc8
tree896718f2139a30d5b0bcfbf1d185e1fd474c0bd1
parent87e332d56b2c7dc6733f690c9069f4fe75f21c9d
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>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
include/linux/fence.h