]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - include/linux/rculist.h
Merge branch 'linus' into sched/core
[mv-sheeva.git] / include / linux / rculist.h
index 779d70749beb5318087a676a83929fa7b9309544..2c9b46cff3d70bc61f4f1273897b47a694a94796 100644 (file)
@@ -406,6 +406,11 @@ static inline void hlist_add_after_rcu(struct hlist_node *prev,
                n->next->pprev = &n->next;
 }
 
+#define __hlist_for_each_rcu(pos, head)                        \
+       for (pos = rcu_dereference((head)->first);      \
+            pos && ({ prefetch(pos->next); 1; });      \
+            pos = rcu_dereference(pos->next))
+
 /**
  * hlist_for_each_entry_rcu - iterate over rcu list of given type
  * @tpos:      the type * to use as a loop cursor.