]> err.no Git - linux-2.6/blobdiff - kernel/lockdep.c
[PATCH] drivers/isdn/gigaset: build asyncdata.o into the gigaset module (fix)
[linux-2.6] / kernel / lockdep.c
index 592c576d77a7c325cb4edfa4d496f244764b5ae5..8dc24c92dc6d2c1e867c8ce381caec43c9408583 100644 (file)
@@ -2228,6 +2228,10 @@ out_calc_hash:
 
        curr->lockdep_depth++;
        check_chain_key(curr);
+#ifdef CONFIG_DEBUG_LOCKDEP
+       if (unlikely(!debug_locks))
+               return 0;
+#endif
        if (unlikely(curr->lockdep_depth >= MAX_LOCK_DEPTH)) {
                debug_locks_off();
                printk("BUG: MAX_LOCK_DEPTH too low!\n");
@@ -2598,7 +2602,7 @@ out_restore:
        raw_local_irq_restore(flags);
 }
 
-void __init lockdep_init(void)
+void lockdep_init(void)
 {
        int i;