rcu: Move the RCU_SCHEDULER_ definitions from rcupdate.h
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 3 May 2017 18:13:24 +0000 (11:13 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 9 Jun 2017 01:52:30 +0000 (18:52 -0700)
The RCU_SCHEDULER_INACTIVE, RCU_SCHEDULER_INIT, and RCU_SCHEDULER_RUNNING
definitions are used only within RCU, so this commit moves them from
include/linux/rcupdate.h to kernel/rcu/rcu.h.

Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/rcupdate.h
kernel/rcu/rcu.h

index b4edfe0966c699b9b010237f3df8480ebb7d997d..9206a28a2d449afb5868086f10434d72c0b24081 100644 (file)
@@ -217,10 +217,6 @@ do { \
 #error "Unknown RCU implementation specified to kernel configuration"
 #endif
 
-#define RCU_SCHEDULER_INACTIVE 0
-#define RCU_SCHEDULER_INIT     1
-#define RCU_SCHEDULER_RUNNING  2
-
 /*
  * init_rcu_head_on_stack()/destroy_rcu_head_on_stack() are needed for dynamic
  * initialization and destruction of rcu_head on the stack. rcu_head structures
index f190fc1c8215e3b462a8c9cfbebfe4d620bdde72..17fee2a667d95f6d3321c065c1b29e9f6e460449 100644 (file)
@@ -319,6 +319,10 @@ void rcu_unexpedite_gp(void);
 void rcupdate_announce_bootup_oddness(void);
 #endif /* #else #ifdef CONFIG_TINY_RCU */
 
+#define RCU_SCHEDULER_INACTIVE 0
+#define RCU_SCHEDULER_INIT     1
+#define RCU_SCHEDULER_RUNNING  2
+
 enum rcutorture_type {
        RCU_FLAVOR,
        RCU_BH_FLAVOR,