-static inline void _rcu_thread_offline(void)
-{
- smp_mb();
- urcu_active_readers = ACCESS_ONCE(urcu_gp_ctr);
-}
-
-static inline void _rcu_thread_online(void)
-{
- urcu_active_readers = ACCESS_ONCE(urcu_gp_ctr) + 1;
- smp_mb();
-}
-
-/**
- * _rcu_assign_pointer - assign (publicize) a pointer to a new data structure
- * meant to be read by RCU read-side critical sections. Returns the assigned
- * value.
- *
- * Documents which pointers will be dereferenced by RCU read-side critical
- * sections and adds the required memory barriers on architectures requiring
- * them. It also makes sure the compiler does not reorder code initializing the
- * data structure before its publication.
- *
- * Should match rcu_dereference_pointer().
- */