ck_hp_fifo: No need for volatile atomic stores on initialization.

ck_pring
Samy Al Bahra 11 years ago
parent ca49839883
commit 06feae82f3

@ -60,9 +60,8 @@ CK_CC_INLINE static void
ck_hp_fifo_init(struct ck_hp_fifo *fifo, struct ck_hp_fifo_entry *stub) ck_hp_fifo_init(struct ck_hp_fifo *fifo, struct ck_hp_fifo_entry *stub)
{ {
ck_pr_store_ptr(&stub->next, NULL); fifo->head = fifo->tail = stub;
ck_pr_store_ptr(&fifo->head, stub); stub->next = NULL;
ck_pr_store_ptr(&fifo->tail, stub);
return; return;
} }

Loading…
Cancel
Save