summaryrefslogtreecommitdiff
path: root/include/linux/sync_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sync_file.h')
-rw-r--r--include/linux/sync_file.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/sync_file.h b/include/linux/sync_file.h
index 5726107963b2..790ca021203a 100644
--- a/include/linux/sync_file.h
+++ b/include/linux/sync_file.h
@@ -25,8 +25,12 @@
* @file: file representing this fence
* @sync_file_list: membership in global file list
* @wq: wait queue for fence signaling
+ * @flags: flags for the sync_file
* @fence: fence with the fences in the sync_file
* @cb: fence callback information
+ *
+ * flags:
+ * POLL_ENABLED: whether userspace is currently poll()'ing or not
*/
struct sync_file {
struct file *file;
@@ -43,12 +47,13 @@ struct sync_file {
#endif
wait_queue_head_t wq;
+ unsigned long flags;
struct dma_fence *fence;
struct dma_fence_cb cb;
};
-#define POLL_ENABLED DMA_FENCE_FLAG_USER_BITS
+#define POLL_ENABLED 0
struct sync_file *sync_file_create(struct dma_fence *fence);
struct dma_fence *sync_file_get_fence(int fd);