rcu: Move torture-related definitions from rcupdate.h to rcu.h

The include/linux/rcupdate.h file contains a number of definitions that
are used only to communicate between rcutorture, rcuperf, and the RCU code
itself.  There is no point in having these definitions exposed globally
throughout the kernel, so this commit moves them to kernel/rcu/rcu.h.
This change has the added benefit of shrinking rcupdate.h.

Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
This commit is contained in:
Paul E. McKenney 2017-05-03 10:22:57 -07:00
parent 25c36329a3
commit cad7b38972
7 changed files with 91 additions and 82 deletions

View file

@ -202,6 +202,11 @@ static inline void rcu_irq_enter(void)
{
}
static inline bool rcu_irq_enter_disabled(void)
{
return false;
}
static inline void rcu_irq_exit_irqson(void)
{
}