diff options
Diffstat (limited to 'include/linux/rcutiny.h')
| -rw-r--r-- | include/linux/rcutiny.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/rcutiny.h b/include/linux/rcutiny.h index ff22b97fb979..14e5a76b2c06 100644 --- a/include/linux/rcutiny.h +++ b/include/linux/rcutiny.h | |||
| @@ -128,4 +128,17 @@ static inline int rcu_preempt_depth(void) | |||
| 128 | return 0; | 128 | return 0; |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | ||
| 132 | |||
| 133 | extern int rcu_scheduler_active __read_mostly; | ||
| 134 | extern void rcu_scheduler_starting(void); | ||
| 135 | |||
| 136 | #else /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */ | ||
| 137 | |||
| 138 | static inline void rcu_scheduler_starting(void) | ||
| 139 | { | ||
| 140 | } | ||
| 141 | |||
| 142 | #endif /* #else #ifdef CONFIG_DEBUG_LOCK_ALLOC */ | ||
| 143 | |||
| 131 | #endif /* __LINUX_RCUTINY_H */ | 144 | #endif /* __LINUX_RCUTINY_H */ |
