summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorGustavo Padovan2016-08-05 15:39:38 +0200
committerSumit Semwal2016-08-11 12:09:38 +0200
commite24165537312723e2900831dd6e7415b8d85278c (patch)
tree50fdfc4cbedb2b92a1a96c79141d0605ad63bf6e /include/drm
parentDocumentation: add doc for sync_file_get_fence() (diff)
downloadkernel-qcow2-linux-e24165537312723e2900831dd6e7415b8d85278c.tar.gz
kernel-qcow2-linux-e24165537312723e2900831dd6e7415b8d85278c.tar.xz
kernel-qcow2-linux-e24165537312723e2900831dd6e7415b8d85278c.zip
dma-buf/sync_file: only enable fence signalling on poll()
Signalling doesn't need to be enabled at sync_file creation, it is only required if userspace waiting the fence to signal through poll(). Thus we delay fence_add_callback() until poll is called. It only adds the callback the first time poll() is called. This avoid re-adding the same callback multiple times. v2: rebase and update to work with new fence support for sync_file v3: use atomic operation to set enabled and protect fence_add_callback() v4: use user bit from fence flags (comment from Chris Wilson) v5: use ternary if on poll return (comment from Chris Wilson) Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> [sumits: remove unused var status] Link: http://patchwork.freedesktop.org/patch/msgid/1470404378-27961-1-git-send-email-gustavo@padovan.org
Diffstat (limited to 'include/drm')
0 files changed, 0 insertions, 0 deletions