Skip to content

Commit f733615

Browse files
jognesspaulmckrcu
authored andcommitted
rcu: Implement lockdep_rcu_enabled for !CONFIG_DEBUG_LOCK_ALLOC
Provide an implementation for debug_lockdep_rcu_enabled() when CONFIG_DEBUG_LOCK_ALLOC is not enabled. This allows code to check if rcu lockdep debugging is available without needing an extra check if CONFIG_DEBUG_LOCK_ALLOC is enabled. Signed-off-by: John Ogness <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent e29a491 commit f733615

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/rcupdate.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,11 @@ static inline int rcu_read_lock_any_held(void)
340340
return !preemptible();
341341
}
342342

343+
static inline int debug_lockdep_rcu_enabled(void)
344+
{
345+
return 0;
346+
}
347+
343348
#endif /* #else #ifdef CONFIG_DEBUG_LOCK_ALLOC */
344349

345350
#ifdef CONFIG_PROVE_RCU

0 commit comments

Comments
 (0)