urcu-qsbr: use same ongoing helper for 32 and 64 bits
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 14 May 2010 00:15:10 +0000 (20:15 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 14 May 2010 00:15:10 +0000 (20:15 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu-qsbr-static.h

index 125301f9b7749c4a93784068eb3f6e320aa156d9..86f0fc507449451d70f276571d3c6aa1be61d98a 100644 (file)
@@ -155,15 +155,6 @@ static inline void wake_up_gp(void)
        }
 }
 
-#if (BITS_PER_LONG < 64)
-static inline int rcu_gp_ongoing(unsigned long *ctr)
-{
-       unsigned long v;
-
-       v = LOAD_SHARED(*ctr);
-       return v && ((v ^ rcu_gp_ctr) & RCU_GP_CTR);
-}
-#else /* !(BITS_PER_LONG < 64) */
 static inline int rcu_gp_ongoing(unsigned long *ctr)
 {
        unsigned long v;
@@ -171,7 +162,6 @@ static inline int rcu_gp_ongoing(unsigned long *ctr)
        v = LOAD_SHARED(*ctr);
        return v && (v != rcu_gp_ctr);
 }
-#endif  /* !(BITS_PER_LONG < 64) */
 
 static inline void _rcu_read_lock(void)
 {
This page took 0.03265 seconds and 4 git commands to generate.