/* * 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/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 * @child_list_head: list of children sync_pts for this sync_timeline * @child_list_lock: lock protecting @child_list_head and fence.status * @active_list_head: 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 child_list_lock */ u64 context; int value; struct list_head child_list_head; spinlock_t child_list_lock; struct list_head active_list_head; 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, child_list_lock); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Maarten Lankhorst | 22 | 81.48% | 1 | 25.00% |
Chris Wilson | 2 | 7.41% | 1 | 25.00% |
Gustavo Fernando Padovan | 2 | 7.41% | 1 | 25.00% |
Erik Gilling | 1 | 3.70% | 1 | 25.00% |
Total | 27 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Maarten Lankhorst | 97 | 50.79% | 1 | 6.25% |
Erik Gilling | 49 | 25.65% | 4 | 25.00% |
Gustavo Fernando Padovan | 38 | 19.90% | 9 | 56.25% |
Chris Wilson | 4 | 2.09% | 1 | 6.25% |
Linus Torvalds | 3 | 1.57% | 1 | 6.25% |
Total | 191 | 100.00% | 16 | 100.00% |