diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/lockdep.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 819f08f1310d..da19aeb0dbe8 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h | |||
@@ -243,6 +243,8 @@ extern void lock_release(struct lockdep_map *lock, int nested, | |||
243 | 243 | ||
244 | # define INIT_LOCKDEP .lockdep_recursion = 0, | 244 | # define INIT_LOCKDEP .lockdep_recursion = 0, |
245 | 245 | ||
246 | #define lockdep_depth(tsk) ((tsk)->lockdep_depth) | ||
247 | |||
246 | #else /* !LOCKDEP */ | 248 | #else /* !LOCKDEP */ |
247 | 249 | ||
248 | static inline void lockdep_off(void) | 250 | static inline void lockdep_off(void) |
@@ -277,6 +279,9 @@ static inline int lockdep_internal(void) | |||
277 | * The class key takes no space if lockdep is disabled: | 279 | * The class key takes no space if lockdep is disabled: |
278 | */ | 280 | */ |
279 | struct lock_class_key { }; | 281 | struct lock_class_key { }; |
282 | |||
283 | #define lockdep_depth(tsk) (0) | ||
284 | |||
280 | #endif /* !LOCKDEP */ | 285 | #endif /* !LOCKDEP */ |
281 | 286 | ||
282 | #if defined(CONFIG_TRACE_IRQFLAGS) && defined(CONFIG_GENERIC_HARDIRQS) | 287 | #if defined(CONFIG_TRACE_IRQFLAGS) && defined(CONFIG_GENERIC_HARDIRQS) |