drm/vmwgfx: Remove call to reservation_object_test_signaled_rcu before wait
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 29 Aug 2016 07:08:28 +0000 (08:08 +0100)
committerSinclair Yeh <syeh@vmware.com>
Mon, 10 Oct 2016 18:15:00 +0000 (11:15 -0700)
commit07028959bcc674dc8ca143323aeab05849a83742
treeaefb11de2153953b013110b73a441ef813fa9113
parent2d8e60e8b0742b7a5cddc806fe38bb81ee876c33
drm/vmwgfx: Remove call to reservation_object_test_signaled_rcu before wait

Since fence_wait_timeout_reservation_object_wait_timeout_rcu() with a
timeout of 0 becomes reservation_object_test_signaled_rcu(), we do not
need to handle such conversion in the caller. The only challenge are
those callers that wish to differentiate the error code between the
nonblocking busy check and potentially blocking wait.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Sinclair Yeh <syeh@vmware.com>
Cc: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c