summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-01-06 17:01:59 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-06 17:01:59 +0100
commit1483b3823542c9721eddf09a077af1e02ac96b50 (patch)
tree390dcff4ddfb8634ad62c7fc9c3c9d0e802e9c1e /include
parentMerge branch 'core-memblock-for-linus' of git://git.kernel.org/pub/scm/linux/... (diff)
parentprintk, lockdep: Switch to tracked irq ops (diff)
downloadlinux-1483b3823542c9721eddf09a077af1e02ac96b50.tar.xz
linux-1483b3823542c9721eddf09a077af1e02ac96b50.zip
Merge branch 'core-printk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
* 'core-printk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: printk, lockdep: Switch to tracked irq ops printk, lockdep: Remove superfluous preempt_disable() printk, lockdep: Disable lock debugging on zap_locks()
Diffstat (limited to 'include')
-rw-r--r--include/linux/lockdep.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
index b6a56e37284c..d36619ead3ba 100644
--- a/include/linux/lockdep.h
+++ b/include/linux/lockdep.h
@@ -343,6 +343,8 @@ extern void lockdep_trace_alloc(gfp_t mask);
#define lockdep_assert_held(l) WARN_ON(debug_locks && !lockdep_is_held(l))
+#define lockdep_recursing(tsk) ((tsk)->lockdep_recursion)
+
#else /* !LOCKDEP */
static inline void lockdep_off(void)
@@ -392,6 +394,8 @@ struct lock_class_key { };
#define lockdep_assert_held(l) do { } while (0)
+#define lockdep_recursing(tsk) (0)
+
#endif /* !LOCKDEP */
#ifdef CONFIG_LOCK_STAT