Permit both 32 and 64-bit builds
[urcu.git] / urcu-qsbr-static.h
index 3d2ec8f3af5b046c9ca66c3b24e4e77aa762d358..57f0c50a8b899b2db0fc77084b052beb534d9d5e 100644 (file)
@@ -161,6 +161,9 @@ static inline void reader_barrier()
        smp_mb();
 }
 
+#define RCU_GP_ONLINE          (1UL << 0)
+#define RCU_GP_CTR             (1UL << 1)
+
 /*
  * Global quiescent period counter with low-order bits unused.
  * Using a int rather than a char to eliminate false register dependencies
@@ -182,7 +185,7 @@ static inline int rcu_gp_ongoing(unsigned long *value)
 
 static inline void _rcu_read_lock(void)
 {
-       rcu_assert(rcu_reader_qs_gp & 1);
+       rcu_assert(rcu_reader_qs_gp);
 }
 
 static inline void _rcu_read_unlock(void)
This page took 0.02295 seconds and 4 git commands to generate.