aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutiny.c
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2013-11-05 16:03:17 -0500
committerSteven Rostedt <rostedt@goodmis.org>2013-11-05 16:03:17 -0500
commit44847da1b921f35b348ecd46df93abfbcd547355 (patch)
tree0dcc929a02b98dcf0927b9ad70083087c6d0e4ae /kernel/rcutiny.c
parentab4ead02ec235d706d0611d8741964628291237e (diff)
parent5c173eb8bcb9c1aa888bd6d14a4cb746f3dd2420 (diff)
Merge branch 'idle.2013.09.25a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu into HEAD
Need to use Paul McKenney's "rcu_is_watching()" changes to fix a perf/ftrace bug.
Diffstat (limited to 'kernel/rcutiny.c')
-rw-r--r--kernel/rcutiny.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/rcutiny.c b/kernel/rcutiny.c
index 9ed6075dc562..0fa061dfa55d 100644
--- a/kernel/rcutiny.c
+++ b/kernel/rcutiny.c
@@ -174,18 +174,18 @@ void rcu_irq_enter(void)
174} 174}
175EXPORT_SYMBOL_GPL(rcu_irq_enter); 175EXPORT_SYMBOL_GPL(rcu_irq_enter);
176 176
177#ifdef CONFIG_DEBUG_LOCK_ALLOC 177#if defined(CONFIG_DEBUG_LOCK_ALLOC) || defined(CONFIG_RCU_TRACE)
178 178
179/* 179/*
180 * Test whether RCU thinks that the current CPU is idle. 180 * Test whether RCU thinks that the current CPU is idle.
181 */ 181 */
182int rcu_is_cpu_idle(void) 182bool __rcu_is_watching(void)
183{ 183{
184 return !rcu_dynticks_nesting; 184 return rcu_dynticks_nesting;
185} 185}
186EXPORT_SYMBOL(rcu_is_cpu_idle); 186EXPORT_SYMBOL(__rcu_is_watching);
187 187
188#endif /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */ 188#endif /* defined(CONFIG_DEBUG_LOCK_ALLOC) || defined(CONFIG_RCU_TRACE) */
189 189
190/* 190/*
191 * Test whether the current CPU was interrupted from idle. Nested 191 * Test whether the current CPU was interrupted from idle. Nested