diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-25 11:18:01 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-25 11:51:12 +0100 |
commit | c3e4518e84300aeb8e12a0af56c2d66a1df9d8d7 (patch) | |
tree | e568892751c19d825fb84b0c0a466ac7227ffa91 /src/intel_list.h | |
parent | 85bb55e4a62666fa51af34d08699950be362aa57 (diff) |
sna: Track desired flushes better after starting a new batch
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_list.h')
-rw-r--r-- | src/intel_list.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/intel_list.h b/src/intel_list.h index de0b6837..51af825d 100644 --- a/src/intel_list.h +++ b/src/intel_list.h @@ -403,5 +403,10 @@ static inline void list_move_tail(struct list *list, struct list *head) #define container_of(ptr, type, member) \ ((type *)((char *)(ptr) - (char *) &((type *)0)->member)) +static inline int list_is_singular(const struct list *list) +{ + return list->next == list->prev; +} + #endif /* _INTEL_LIST_H_ */ |