|
@@ -16,6 +16,7 @@
|
|
|
#include <linux/types.h>
|
|
|
#ifdef __KERNEL__
|
|
|
|
|
|
+#include <linux/ktime.h>
|
|
|
#include <linux/list.h>
|
|
|
#include <linux/spinlock.h>
|
|
|
#include <linux/wait.h>
|
|
@@ -90,6 +91,8 @@ struct sync_timeline {
|
|
|
* @fence: sync_fence to which the sync_pt belongs
|
|
|
* @pt_list: membership in sync_fence.pt_list_head
|
|
|
* @status: 1: signaled, 0:active, <0: error
|
|
|
+ * @timestamp: time which sync_pt status transitioned from active to
|
|
|
+ * singaled or error.
|
|
|
*/
|
|
|
struct sync_pt {
|
|
|
struct sync_timeline *parent;
|
|
@@ -102,6 +105,8 @@ struct sync_pt {
|
|
|
|
|
|
/* protected by parent->active_list_lock */
|
|
|
int status;
|
|
|
+
|
|
|
+ ktime_t timestamp;
|
|
|
};
|
|
|
|
|
|
/**
|