urcu-defer: generate linker error if call_rcu() is used
[urcu.git] / urcu-pointer.c
index 83f0ffd..1c5f6bd 100644 (file)
@@ -40,7 +40,7 @@ void *rcu_dereference_sym(void *p)
 void *rcu_set_pointer_sym(void **p, void *v)
 {
        wmb();
-       return STORE_SHARED(*p, v);
+       return uatomic_set(p, v);
 }
 
 void *rcu_xchg_pointer_sym(void **p, void *v)
@@ -52,9 +52,5 @@ void *rcu_xchg_pointer_sym(void **p, void *v)
 void *rcu_cmpxchg_pointer_sym(void **p, void *old, void *_new)
 {
        wmb();
-       if (likely(URCU_CAS_AVAIL()))
-               return uatomic_cmpxchg(p, old, _new);
-
-       /* Compatibility for i386. Old-timer. */
-       return compat_uatomic_cmpxchg(p, old, _new);
+       return uatomic_cmpxchg(p, old, _new);
 }
This page took 0.028457 seconds and 4 git commands to generate.