diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-05-03 15:25:50 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-06-08 21:52:31 -0400 |
commit | 3d54f7983f3e6ac9f444fa20970b1abc8f089b79 (patch) | |
tree | e97b6a3b56d95339719e95545a237e38d3c10c6e /include/linux/rcupdate.h | |
parent | fa3c66476975abf00c97f27b6c2b3d223f7d57f5 (diff) |
rcu: Move rcu_is_nocb_cpu() from rcupdate.h to rcu.h
The rcu_is_nocb_cpu() function is used only internally to RCU. This
commit therefore moves its declaration 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>
Diffstat (limited to 'include/linux/rcupdate.h')
-rw-r--r-- | include/linux/rcupdate.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index f105f0834bbe..003427425e27 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h | |||
@@ -867,15 +867,6 @@ static inline int rcu_needs_cpu(u64 basemono, u64 *nextevt) | |||
867 | } | 867 | } |
868 | #endif /* #ifdef CONFIG_TINY_RCU */ | 868 | #endif /* #ifdef CONFIG_TINY_RCU */ |
869 | 869 | ||
870 | #if defined(CONFIG_RCU_NOCB_CPU_ALL) | ||
871 | static inline bool rcu_is_nocb_cpu(int cpu) { return true; } | ||
872 | #elif defined(CONFIG_RCU_NOCB_CPU) | ||
873 | bool rcu_is_nocb_cpu(int cpu); | ||
874 | #else | ||
875 | static inline bool rcu_is_nocb_cpu(int cpu) { return false; } | ||
876 | #endif | ||
877 | |||
878 | |||
879 | /* Only for use by adaptive-ticks code. */ | 870 | /* Only for use by adaptive-ticks code. */ |
880 | #ifdef CONFIG_NO_HZ_FULL_SYSIDLE | 871 | #ifdef CONFIG_NO_HZ_FULL_SYSIDLE |
881 | bool rcu_sys_is_idle(void); | 872 | bool rcu_sys_is_idle(void); |