aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-01-11 15:58:53 -0500
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-02-20 19:10:30 -0500
commitbfbd767d4dba7fb41df0d356eecb7bbd99d0a7ee (patch)
tree30044830b96494785b9a2ca6bd83c87d29d97063 /kernel
parentd07aee2c035e04dce11209a870b48091a47bd04a (diff)
rcu: Consolidate rcu.h #ifdefs
The kernel/rcu/rcu.h file has a pair of consecutive #ifdefs on CONFIG_TINY_RCU, so this commit consolidates them, thus saving a few lines of code. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rcu/rcu.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/kernel/rcu/rcu.h b/kernel/rcu/rcu.h
index 6334f2c1abd0..c90812673d54 100644
--- a/kernel/rcu/rcu.h
+++ b/kernel/rcu/rcu.h
@@ -356,24 +356,20 @@ static inline bool rcu_gp_is_normal(void) { return true; }
356static inline bool rcu_gp_is_expedited(void) { return false; } 356static inline bool rcu_gp_is_expedited(void) { return false; }
357static inline void rcu_expedite_gp(void) { } 357static inline void rcu_expedite_gp(void) { }
358static inline void rcu_unexpedite_gp(void) { } 358static inline void rcu_unexpedite_gp(void) { }
359static inline void rcu_request_urgent_qs_task(struct task_struct *t) { }
359#else /* #ifdef CONFIG_TINY_RCU */ 360#else /* #ifdef CONFIG_TINY_RCU */
360bool rcu_gp_is_normal(void); /* Internal RCU use. */ 361bool rcu_gp_is_normal(void); /* Internal RCU use. */
361bool rcu_gp_is_expedited(void); /* Internal RCU use. */ 362bool rcu_gp_is_expedited(void); /* Internal RCU use. */
362void rcu_expedite_gp(void); 363void rcu_expedite_gp(void);
363void rcu_unexpedite_gp(void); 364void rcu_unexpedite_gp(void);
364void rcupdate_announce_bootup_oddness(void); 365void rcupdate_announce_bootup_oddness(void);
366void rcu_request_urgent_qs_task(struct task_struct *t);
365#endif /* #else #ifdef CONFIG_TINY_RCU */ 367#endif /* #else #ifdef CONFIG_TINY_RCU */
366 368
367#define RCU_SCHEDULER_INACTIVE 0 369#define RCU_SCHEDULER_INACTIVE 0
368#define RCU_SCHEDULER_INIT 1 370#define RCU_SCHEDULER_INIT 1
369#define RCU_SCHEDULER_RUNNING 2 371#define RCU_SCHEDULER_RUNNING 2
370 372
371#ifdef CONFIG_TINY_RCU
372static inline void rcu_request_urgent_qs_task(struct task_struct *t) { }
373#else /* #ifdef CONFIG_TINY_RCU */
374void rcu_request_urgent_qs_task(struct task_struct *t);
375#endif /* #else #ifdef CONFIG_TINY_RCU */
376
377enum rcutorture_type { 373enum rcutorture_type {
378 RCU_FLAVOR, 374 RCU_FLAVOR,
379 RCU_BH_FLAVOR, 375 RCU_BH_FLAVOR,