From 7d3fd9d227f4ed6f825b16ae6a59cab489810320 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Fri, 22 Feb 2013 20:15:59 -0500 Subject: [PATCH] ck_fifo: Get rid of load_depends usage for now. Until a target pops up with a requirement for load_depends(), the cost is not worth it for now. --- include/ck_fifo.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/ck_fifo.h b/include/ck_fifo.h index 65eeebb..c7e76aa 100644 --- a/include/ck_fifo.h +++ b/include/ck_fifo.h @@ -142,7 +142,6 @@ ck_fifo_spsc_dequeue(struct ck_fifo_spsc *fifo, void *value) return (false); /* If entry is visible, guarantee store to value is visible. */ - ck_pr_fence_load_depends(); ck_pr_store_ptr(value, entry->value); ck_pr_fence_store(); ck_pr_store_ptr(&fifo->head, entry); @@ -244,7 +243,6 @@ ck_fifo_mpmc_enqueue(struct ck_fifo_mpmc *fifo, tail.generation = ck_pr_load_ptr(&fifo->tail.generation); ck_pr_fence_load(); tail.pointer = ck_pr_load_ptr(&fifo->tail.pointer); - ck_pr_fence_load_depends(); next.generation = ck_pr_load_ptr(&tail.pointer->next.generation); next.pointer = ck_pr_load_ptr(&tail.pointer->next.pointer); @@ -296,7 +294,6 @@ ck_fifo_mpmc_tryenqueue(struct ck_fifo_mpmc *fifo, tail.generation = ck_pr_load_ptr(&fifo->tail.generation); ck_pr_fence_load(); tail.pointer = ck_pr_load_ptr(&fifo->tail.pointer); - ck_pr_fence_load_depends(); next.generation = ck_pr_load_ptr(&tail.pointer->next.generation); next.pointer = ck_pr_load_ptr(&tail.pointer->next.pointer);