rculfhash: likely -> caa_likely fix
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 28 Nov 2011 14:02:16 +0000 (09:02 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 28 Nov 2011 14:02:16 +0000 (09:02 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rculfhash.c

index dd49c500db4aa8fa77b859101b3e021ed6ecb96b..61dc09c3e2fe9408cd3edd3dde44e593e7d1966c 100644 (file)
@@ -549,7 +549,7 @@ void ht_count_add(struct cds_lfht *ht, unsigned long size, unsigned long hash)
        dbg_printf("add split count %lu\n", split_count);
        count = uatomic_add_return(&ht->count,
                                   1UL << COUNT_COMMIT_ORDER);
-       if (likely(count & (count - 1)))
+       if (caa_likely(count & (count - 1)))
                return;
        /* Only if global count is power of 2 */
 
@@ -578,7 +578,7 @@ void ht_count_del(struct cds_lfht *ht, unsigned long size, unsigned long hash)
        dbg_printf("del split count %lu\n", split_count);
        count = uatomic_add_return(&ht->count,
                                   -(1UL << COUNT_COMMIT_ORDER));
-       if (likely(count & (count - 1)))
+       if (caa_likely(count & (count - 1)))
                return;
        /* Only if global count is power of 2 */
 
This page took 0.027864 seconds and 4 git commands to generate.