diff options
author | Ingo Molnar <mingo@kernel.org> | 2013-11-06 07:43:37 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-11-06 07:43:37 +0100 |
commit | ecf1f014325ba60f4df35edae1a357c67c5d4eb1 (patch) | |
tree | 38786562c25d738bed0e22ed8d615e5a7b27c0c7 /include/linux/rcutiny.h | |
parent | 97c53b402fcadb50201c23914f614bf8430d9c20 (diff) | |
parent | 0e95c69bde1a5bf22acd53b356fe10d7bec6e2be (diff) | |
download | blackbird-op-linux-ecf1f014325ba60f4df35edae1a357c67c5d4eb1.tar.gz blackbird-op-linux-ecf1f014325ba60f4df35edae1a357c67c5d4eb1.zip |
Merge branch 'core/rcu' into core/locking, to prepare the kernel/locking/ file move
There are conflicts in lockdep.c due to RCU changes, and also the RCU
tree changes kernel/Makefile - so pre-merge it to ease the moving of
locking related .c files to kernel/locking/.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/rcutiny.h')
-rw-r--r-- | include/linux/rcutiny.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/rcutiny.h b/include/linux/rcutiny.h index e31005ee339e..09ebcbe9fd78 100644 --- a/include/linux/rcutiny.h +++ b/include/linux/rcutiny.h @@ -132,4 +132,21 @@ static inline void rcu_scheduler_starting(void) } #endif /* #else #ifdef CONFIG_DEBUG_LOCK_ALLOC */ +#if defined(CONFIG_DEBUG_LOCK_ALLOC) || defined(CONFIG_RCU_TRACE) + +static inline bool rcu_is_watching(void) +{ + return __rcu_is_watching(); +} + +#else /* defined(CONFIG_DEBUG_LOCK_ALLOC) || defined(CONFIG_RCU_TRACE) */ + +static inline bool rcu_is_watching(void) +{ + return true; +} + + +#endif /* #else defined(CONFIG_DEBUG_LOCK_ALLOC) || defined(CONFIG_RCU_TRACE) */ + #endif /* __LINUX_RCUTINY_H */ |