mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
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>
This commit is contained in:
parent
d07aee2c03
commit
bfbd767d4d
1 changed files with 2 additions and 6 deletions
|
@ -356,24 +356,20 @@ static inline bool rcu_gp_is_normal(void) { return true; }
|
||||||
static inline bool rcu_gp_is_expedited(void) { return false; }
|
static inline bool rcu_gp_is_expedited(void) { return false; }
|
||||||
static inline void rcu_expedite_gp(void) { }
|
static inline void rcu_expedite_gp(void) { }
|
||||||
static inline void rcu_unexpedite_gp(void) { }
|
static inline void rcu_unexpedite_gp(void) { }
|
||||||
|
static inline void rcu_request_urgent_qs_task(struct task_struct *t) { }
|
||||||
#else /* #ifdef CONFIG_TINY_RCU */
|
#else /* #ifdef CONFIG_TINY_RCU */
|
||||||
bool rcu_gp_is_normal(void); /* Internal RCU use. */
|
bool rcu_gp_is_normal(void); /* Internal RCU use. */
|
||||||
bool rcu_gp_is_expedited(void); /* Internal RCU use. */
|
bool rcu_gp_is_expedited(void); /* Internal RCU use. */
|
||||||
void rcu_expedite_gp(void);
|
void rcu_expedite_gp(void);
|
||||||
void rcu_unexpedite_gp(void);
|
void rcu_unexpedite_gp(void);
|
||||||
void rcupdate_announce_bootup_oddness(void);
|
void rcupdate_announce_bootup_oddness(void);
|
||||||
|
void rcu_request_urgent_qs_task(struct task_struct *t);
|
||||||
#endif /* #else #ifdef CONFIG_TINY_RCU */
|
#endif /* #else #ifdef CONFIG_TINY_RCU */
|
||||||
|
|
||||||
#define RCU_SCHEDULER_INACTIVE 0
|
#define RCU_SCHEDULER_INACTIVE 0
|
||||||
#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 a new issue