/* * Sync File validation framework and debug infomation * * Copyright (C) 2012 Google, Inc. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #ifndef _LINUX_SYNC_H #define _LINUX_SYNC_H #include <linux/list.h> #include <linux/rbtree.h> #include <linux/spinlock.h> #include <linux/dma-fence.h> #include <linux/sync_file.h> #include <uapi/linux/sync_file.h> /** * struct sync_timeline - sync object * @kref: reference count on fence. * @name: name of the sync_timeline. Useful for debugging * @lock: lock protecting @pt_list and @value * @pt_tree: rbtree of active (unsignaled/errored) sync_pts * @pt_list: list of active (unsignaled/errored) sync_pts * @sync_timeline_list: membership in global sync_timeline_list */ struct sync_timeline { struct kref kref; char name[32]; /* protected by lock */ u64 context; int value; struct rb_root pt_tree; struct list_head pt_list; spinlock_t lock; struct list_head sync_timeline_list; };
static inline struct sync_timeline *dma_fence_parent(struct dma_fence *fence) { return container_of(fence->lock, struct sync_timeline, lock); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Maarten Lankhorst | 21 | 77.78% | 1 | 20.00% |
Chris Wilson | 3 | 11.11% | 2 | 40.00% |
Gustavo Fernando Padovan | 2 | 7.41% | 1 | 20.00% |
Erik Gilling | 1 | 3.70% | 1 | 20.00% |
Total | 27 | 100.00% | 5 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Maarten Lankhorst | 96 | 49.48% | 1 | 5.88% |
Erik Gilling | 42 | 21.65% | 4 | 23.53% |
Gustavo Fernando Padovan | 31 | 15.98% | 8 | 47.06% |
Chris Wilson | 22 | 11.34% | 3 | 17.65% |
Linus Torvalds | 3 | 1.55% | 1 | 5.88% |
Total | 194 | 100.00% | 17 | 100.00% |