urcu-defer: cleanup debug code
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sun, 20 Sep 2009 15:18:23 +0000 (11:18 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sun, 20 Sep 2009 15:18:23 +0000 (11:18 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu-defer-static.h
urcu-defer.c

index 7d0ed52cf88b624d5a236a5a35c3d1f8920ef661..4cfa837e502632cc2f66b8f6cd5fe084efba11c0 100644 (file)
@@ -152,7 +152,6 @@ static inline void _rcu_defer_queue(void (*fct)(void *p), void *p)
 
        smp_wmb();      /* Publish new pointer before write q[] */
        if (unlikely(defer_queue.last_fct_in != fct)) {
-               //printf("fct diff %p %p\n", defer_queue.last_fct, fct);
                defer_queue.last_fct_in = fct;
                if (unlikely(DQ_IS_FCT_BIT(fct) || fct == DQ_FCT_MARK)) {
                        /*
@@ -170,7 +169,6 @@ static inline void _rcu_defer_queue(void (*fct)(void *p), void *p)
                                      fct);
                }
        } else {
-               //printf("fct same %p\n", fct);
                if (unlikely(DQ_IS_FCT_BIT(p) || p == DQ_FCT_MARK)) {
                        /*
                         * If the data to encode is not aligned or the marker,
index 00dd3c60b3bcf1a2ea7895b3612953a0203af6f6..cd939c7ac85b4bd03bb3d24f769cbb8ef8f70604 100644 (file)
@@ -116,19 +116,15 @@ static void rcu_defer_barrier_queue(struct defer_queue *queue,
                smp_rmb();       /* read head before q[]. */
                p = LOAD_SHARED(queue->q[i++ & DEFER_QUEUE_MASK]);
                if (unlikely(DQ_IS_FCT_BIT(p))) {
-                       //printf("%lu fct bit %p\n", i-1, p);
                        DQ_CLEAR_FCT_BIT(p);
                        queue->last_fct_out = p;
                        p = LOAD_SHARED(queue->q[i++ & DEFER_QUEUE_MASK]);
                } else if (unlikely(p == DQ_FCT_MARK)) {
-                       //printf("%lu fct mark %p\n", i-1, p);
                        p = LOAD_SHARED(queue->q[i++ & DEFER_QUEUE_MASK]);
                        queue->last_fct_out = p;
                        p = LOAD_SHARED(queue->q[i++ & DEFER_QUEUE_MASK]);
-               }// else
-                       //printf("%lu data %p\n", i-1, p);
+               }
                fct = queue->last_fct_out;
-               //printf("tid %lu %lu last_fct %p data %p\n", pthread_self(), i-1, fct, p);
                fct(p);
        }
        smp_mb();       /* push tail after having used q[] */
This page took 0.025836 seconds and 4 git commands to generate.