/* * 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 | 64 | 40.25% | 1 | 6.25% |
Erik Gilling | 42 | 26.42% | 4 | 25.00% |
Gustavo Fernando Padovan | 28 | 17.61% | 7 | 43.75% |
Chris Wilson | 22 | 13.84% | 3 | 18.75% |
Linus Torvalds | 3 | 1.89% | 1 | 6.25% |
Total | 159 | 100.00% | 16 | 100.00% |