rcu: Move rcu_request_urgent_qs_task() out of rcutiny.h and rcutree.h
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>
This commit is contained in:
parent
e3c8d51e1a
commit
fe21a27e8c
@ -157,10 +157,6 @@ static inline bool rcu_is_watching(void)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void rcu_request_urgent_qs_task(struct task_struct *t)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void rcu_all_qs(void)
|
static inline void rcu_all_qs(void)
|
||||||
{
|
{
|
||||||
barrier(); /* Avoid RCU read-side critical sections leaking across. */
|
barrier(); /* Avoid RCU read-side critical sections leaking across. */
|
||||||
|
@ -91,10 +91,7 @@ void exit_rcu(void);
|
|||||||
|
|
||||||
void rcu_scheduler_starting(void);
|
void rcu_scheduler_starting(void);
|
||||||
extern int rcu_scheduler_active __read_mostly;
|
extern int rcu_scheduler_active __read_mostly;
|
||||||
|
|
||||||
bool rcu_is_watching(void);
|
bool rcu_is_watching(void);
|
||||||
void rcu_request_urgent_qs_task(struct task_struct *t);
|
|
||||||
|
|
||||||
void rcu_all_qs(void);
|
void rcu_all_qs(void);
|
||||||
|
|
||||||
/* RCUtree hotplug events */
|
/* RCUtree hotplug events */
|
||||||
|
@ -335,6 +335,12 @@ void rcupdate_announce_bootup_oddness(void);
|
|||||||
#define RCU_SCHEDULER_INIT 1
|
#define RCU_SCHEDULER_INIT 1
|
||||||
#define RCU_SCHEDULER_RUNNING 2
|
#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 {
|
enum rcutorture_type {
|
||||||
RCU_FLAVOR,
|
RCU_FLAVOR,
|
||||||
RCU_BH_FLAVOR,
|
RCU_BH_FLAVOR,
|
||||||
|
Loading…
Reference in New Issue
Block a user