]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rcu: Move rcu_request_urgent_qs_task() out of rcutiny.h and rcutree.h
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 3 May 2017 20:45:51 +0000 (13:45 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 9 Jun 2017 01:52:33 +0000 (18:52 -0700)
The rcu_request_urgent_qs_task() function is used only within RCU,
so there is no point in exporting it to the rest of the kernel from
nclude/linux/rcutiny.h and include/linux/rcutree.h.  This commit therefore
moves this function 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/rcutiny.h
include/linux/rcutree.h
kernel/rcu/rcu.h

index 0d9270913686ba6fe42a156f954a82fbb1f38f7e..f5067941bc27cffdf69d4e7cadf4cf7076a6870a 100644 (file)
@@ -157,10 +157,6 @@ static inline bool rcu_is_watching(void)
        return true;
 }
 
-static inline void rcu_request_urgent_qs_task(struct task_struct *t)
-{
-}
-
 static inline void rcu_all_qs(void)
 {
        barrier(); /* Avoid RCU read-side critical sections leaking across. */
index 43113323ca09471bbaa3b8a68b7bf23ec9fe2fb9..d6aa89d15d47e5c7b2dd94d1f39cc07ba5ef7501 100644 (file)
@@ -91,10 +91,7 @@ void exit_rcu(void);
 
 void rcu_scheduler_starting(void);
 extern int rcu_scheduler_active __read_mostly;
-
 bool rcu_is_watching(void);
-void rcu_request_urgent_qs_task(struct task_struct *t);
-
 void rcu_all_qs(void);
 
 /* RCUtree hotplug events */
index d849b371b32b6ab7f6d3eb9850d87729e7321d04..5b76a5baff2ed60f0f162f7b9562b42af4b24b90 100644 (file)
@@ -335,6 +335,12 @@ void rcupdate_announce_bootup_oddness(void);
 #define RCU_SCHEDULER_INIT     1
 #define RCU_SCHEDULER_RUNNING  2
 
+#ifdef CONFIG_TINY_RCU
+static inline void rcu_request_urgent_qs_task(struct task_struct *t) { }
+#else /* #ifdef CONFIG_TINY_RCU */
+void rcu_request_urgent_qs_task(struct task_struct *t);
+#endif /* #else #ifdef CONFIG_TINY_RCU */
+
 enum rcutorture_type {
        RCU_FLAVOR,
        RCU_BH_FLAVOR,