diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/llist.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/llist.c b/lib/llist.c index 878985c4d19d..700cff77a387 100644 --- a/lib/llist.c +++ b/lib/llist.c | |||
@@ -49,7 +49,6 @@ bool llist_add_batch(struct llist_node *new_first, struct llist_node *new_last, | |||
49 | entry = cmpxchg(&head->first, old_entry, new_first); | 49 | entry = cmpxchg(&head->first, old_entry, new_first); |
50 | if (entry == old_entry) | 50 | if (entry == old_entry) |
51 | break; | 51 | break; |
52 | cpu_relax(); | ||
53 | } | 52 | } |
54 | 53 | ||
55 | return old_entry == NULL; | 54 | return old_entry == NULL; |
@@ -83,7 +82,6 @@ struct llist_node *llist_del_first(struct llist_head *head) | |||
83 | entry = cmpxchg(&head->first, old_entry, next); | 82 | entry = cmpxchg(&head->first, old_entry, next); |
84 | if (entry == old_entry) | 83 | if (entry == old_entry) |
85 | break; | 84 | break; |
86 | cpu_relax(); | ||
87 | } | 85 | } |
88 | 86 | ||
89 | return entry; | 87 | return entry; |