Merge tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[linux-2.6-block.git] / kernel / tracepoint.c
index 685c50ae63000a65f2dc0ca4c6fe8280088d8646..671b134573876d7ab5f8c3b2f1b8722b909c1201 100644 (file)
@@ -212,11 +212,10 @@ static int tracepoint_add_func(struct tracepoint *tp,
        }
 
        /*
-        * rcu_assign_pointer has a smp_wmb() which makes sure that the new
-        * probe callbacks array is consistent before setting a pointer to it.
-        * This array is referenced by __DO_TRACE from
-        * include/linux/tracepoints.h. A matching smp_read_barrier_depends()
-        * is used.
+        * rcu_assign_pointer has as smp_store_release() which makes sure
+        * that the new probe callbacks array is consistent before setting
+        * a pointer to it.  This array is referenced by __DO_TRACE from
+        * include/linux/tracepoint.h using rcu_dereference_sched().
         */
        rcu_assign_pointer(tp->funcs, tp_funcs);
        if (!static_key_enabled(&tp->key))