aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutiny.c
diff options
context:
space:
mode:
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