rcu: Move rcupdate.h to new empty-function style
This commit saves a few lines in include/linux/rcupdate.h by moving to single-line definitions for empty functions, instead of the old style where the two curly braces each get their own line. Reported-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
This commit is contained in:
@@ -124,12 +124,8 @@ static inline void rcu_end_inkernel_boot(void) { }
|
|||||||
void rcu_sysrq_start(void);
|
void rcu_sysrq_start(void);
|
||||||
void rcu_sysrq_end(void);
|
void rcu_sysrq_end(void);
|
||||||
#else /* #ifdef CONFIG_RCU_STALL_COMMON */
|
#else /* #ifdef CONFIG_RCU_STALL_COMMON */
|
||||||
static inline void rcu_sysrq_start(void)
|
static inline void rcu_sysrq_start(void) { }
|
||||||
{
|
static inline void rcu_sysrq_end(void) { }
|
||||||
}
|
|
||||||
static inline void rcu_sysrq_end(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif /* #else #ifdef CONFIG_RCU_STALL_COMMON */
|
#endif /* #else #ifdef CONFIG_RCU_STALL_COMMON */
|
||||||
|
|
||||||
#ifdef CONFIG_NO_HZ_FULL
|
#ifdef CONFIG_NO_HZ_FULL
|
||||||
@@ -143,9 +139,7 @@ static inline void rcu_user_exit(void) { }
|
|||||||
#ifdef CONFIG_RCU_NOCB_CPU
|
#ifdef CONFIG_RCU_NOCB_CPU
|
||||||
void rcu_init_nohz(void);
|
void rcu_init_nohz(void);
|
||||||
#else /* #ifdef CONFIG_RCU_NOCB_CPU */
|
#else /* #ifdef CONFIG_RCU_NOCB_CPU */
|
||||||
static inline void rcu_init_nohz(void)
|
static inline void rcu_init_nohz(void) { }
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif /* #else #ifdef CONFIG_RCU_NOCB_CPU */
|
#endif /* #else #ifdef CONFIG_RCU_NOCB_CPU */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -243,21 +237,10 @@ void destroy_rcu_head(struct rcu_head *head);
|
|||||||
void init_rcu_head_on_stack(struct rcu_head *head);
|
void init_rcu_head_on_stack(struct rcu_head *head);
|
||||||
void destroy_rcu_head_on_stack(struct rcu_head *head);
|
void destroy_rcu_head_on_stack(struct rcu_head *head);
|
||||||
#else /* !CONFIG_DEBUG_OBJECTS_RCU_HEAD */
|
#else /* !CONFIG_DEBUG_OBJECTS_RCU_HEAD */
|
||||||
static inline void init_rcu_head(struct rcu_head *head)
|
static inline void init_rcu_head(struct rcu_head *head) { }
|
||||||
{
|
static inline void destroy_rcu_head(struct rcu_head *head) { }
|
||||||
}
|
static inline void init_rcu_head_on_stack(struct rcu_head *head) { }
|
||||||
|
static inline void destroy_rcu_head_on_stack(struct rcu_head *head) { }
|
||||||
static inline void destroy_rcu_head(struct rcu_head *head)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void init_rcu_head_on_stack(struct rcu_head *head)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void destroy_rcu_head_on_stack(struct rcu_head *head)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif /* #else !CONFIG_DEBUG_OBJECTS_RCU_HEAD */
|
#endif /* #else !CONFIG_DEBUG_OBJECTS_RCU_HEAD */
|
||||||
|
|
||||||
#if defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PROVE_RCU)
|
#if defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PROVE_RCU)
|
||||||
@@ -334,9 +317,7 @@ static inline void rcu_preempt_sleep_check(void)
|
|||||||
"Illegal context switch in RCU read-side critical section");
|
"Illegal context switch in RCU read-side critical section");
|
||||||
}
|
}
|
||||||
#else /* #ifdef CONFIG_PROVE_RCU */
|
#else /* #ifdef CONFIG_PROVE_RCU */
|
||||||
static inline void rcu_preempt_sleep_check(void)
|
static inline void rcu_preempt_sleep_check(void) { }
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif /* #else #ifdef CONFIG_PROVE_RCU */
|
#endif /* #else #ifdef CONFIG_PROVE_RCU */
|
||||||
|
|
||||||
#define rcu_sleep_check() \
|
#define rcu_sleep_check() \
|
||||||
@@ -915,9 +896,7 @@ static inline bool rcu_sys_is_idle(void)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void rcu_sysidle_force_exit(void)
|
static inline void rcu_sysidle_force_exit(void) { }
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* #else #ifdef CONFIG_NO_HZ_FULL_SYSIDLE */
|
#endif /* #else #ifdef CONFIG_NO_HZ_FULL_SYSIDLE */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user