aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/llist.h1
-rw-r--r--lib/llist.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/llist.h b/include/linux/llist.h
index e2e96d04ee48..837fb4ae66fb 100644
--- a/include/linux/llist.h
+++ b/include/linux/llist.h
@@ -161,7 +161,6 @@ static inline bool llist_add(struct llist_node *new, struct llist_head *head)
161 entry = cmpxchg(&head->first, old_entry, new); 161 entry = cmpxchg(&head->first, old_entry, new);
162 if (entry == old_entry) 162 if (entry == old_entry)
163 break; 163 break;
164 cpu_relax();
165 } 164 }
166 165
167 return old_entry == NULL; 166 return old_entry == NULL;
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;