Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[pandora-kernel.git] / include / linux / llist.h
index 27bbdf5..7287734 100644 (file)
@@ -138,6 +138,11 @@ static inline bool llist_empty(const struct llist_head *head)
        return ACCESS_ONCE(head->first) == NULL;
 }
 
+static inline struct llist_node *llist_next(struct llist_node *node)
+{
+       return node->next;
+}
+
 /**
  * llist_add - add a new entry
  * @new:       new entry to be added
@@ -156,7 +161,6 @@ static inline bool llist_add(struct llist_node *new, struct llist_head *head)
                entry = cmpxchg(&head->first, old_entry, new);
                if (entry == old_entry)
                        break;
-               cpu_relax();
        }
 
        return old_entry == NULL;
@@ -174,4 +178,10 @@ static inline struct llist_node *llist_del_all(struct llist_head *head)
 {
        return xchg(&head->first, NULL);
 }
+
+extern bool llist_add_batch(struct llist_node *new_first,
+                           struct llist_node *new_last,
+                           struct llist_head *head);
+extern struct llist_node *llist_del_first(struct llist_head *head);
+
 #endif /* LLIST_H */