kernel_optimize_test/drivers/dma-buf
Chris Wilson ecebca79f6 dma-buf/sync-file: Avoid enable fence signaling if poll(.timeout=0)
If we being polled with a timeout of zero, a nonblocking busy query,
we don't need to install any fence callbacks as we will not be waiting.
As we only install the callback once, the overhead comes from the atomic
bit test that also causes serialisation between threads.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Gustavo Padovan <gustavo@padovan.org>
Cc: linux-media@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: linaro-mm-sig@lists.linaro.org
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20160829181613.30722-1-chris@chris-wilson.co.uk
2016-09-13 20:09:49 +05:30
..
dma-buf.c dma-buf: Wait on the reservation object when sync'ing before CPU access 2016-08-16 12:31:35 +05:30
fence-array.c dma-buf: fix kernel-doc warning and typos 2016-08-17 09:19:28 +05:30
fence.c dma-buf/fence: make fence context 64 bit v2 2016-06-02 08:27:41 +02:00
Kconfig dma-buf/sync_file: improve Kconfig description for Sync Files 2016-07-13 19:52:08 +05:30
Makefile dma-buf/fence: add fence_array fences v6 2016-06-02 09:26:15 +02:00
reservation.c reservation: fix small comment typo 2016-08-22 09:22:09 +02:00
seqno-fence.c dma-buf: Minor coding style fixes 2015-05-21 11:29:59 +05:30
sync_file.c dma-buf/sync-file: Avoid enable fence signaling if poll(.timeout=0) 2016-09-13 20:09:49 +05:30