Subversion Repositories Kolibri OS

Rev

Rev 6082 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6082 Rev 7143
Line 77... Line 77...
77
	spinlock_t *lock;
77
	spinlock_t *lock;
78
	unsigned context, seqno;
78
	unsigned context, seqno;
79
	unsigned long flags;
79
	unsigned long flags;
80
	ktime_t timestamp;
80
	ktime_t timestamp;
81
	int status;
81
	int status;
-
 
82
	struct list_head child_list;
-
 
83
	struct list_head active_list;
82
};
84
};
Line 83... Line 85...
83
 
85
 
84
enum fence_flag_bits {
86
enum fence_flag_bits {
85
	FENCE_FLAG_SIGNALED_BIT,
87
	FENCE_FLAG_SIGNALED_BIT,
Line 290... Line 292...
290
static inline bool fence_is_later(struct fence *f1, struct fence *f2)
292
static inline bool fence_is_later(struct fence *f1, struct fence *f2)
291
{
293
{
292
	if (WARN_ON(f1->context != f2->context))
294
	if (WARN_ON(f1->context != f2->context))
293
		return false;
295
		return false;
Line 294... Line 296...
294
 
296
 
295
	return f1->seqno - f2->seqno < INT_MAX;
297
	return (int)(f1->seqno - f2->seqno) > 0;
Line 296... Line 298...
296
}
298
}
297
 
299
 
298
/**
300
/**