summaryrefslogtreecommitdiffstats
path: root/kernel/lockdep.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-12-13 09:34:42 +0100
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-13 18:05:50 +0100
commit27c3b23226fc649de47e4886ccbf994482f388ba (patch)
tree43b0da769b52a709f2f408c8dc791a70fe9fc9fe /kernel/lockdep.c
parent[PATCH] lockdep: clean up VERY_VERBOSE define (diff)
downloadlinux-27c3b23226fc649de47e4886ccbf994482f388ba.tar.xz
linux-27c3b23226fc649de47e4886ccbf994482f388ba.zip
[PATCH] lockdep: use chain hash on CONFIG_DEBUG_LOCKDEP too
CONFIG_DEBUG_LOCKDEP is unacceptably slow because it does not utilize the chain-hash. Turn the chain-hash back on in this case too. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to '')
-rw-r--r--kernel/lockdep.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index c4ffd3c1dec4..69e92c6b0472 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -1276,14 +1276,6 @@ static inline int lookup_chain_cache(u64 chain_key, struct lock_class *class)
if (chain->chain_key == chain_key) {
cache_hit:
debug_atomic_inc(&chain_lookup_hits);
- /*
- * In the debugging case, force redundant checking
- * by returning 1:
- */
-#ifdef CONFIG_DEBUG_LOCKDEP
- __raw_spin_lock(&hash_lock);
- return 1;
-#endif
if (very_verbose(class))
printk("\nhash chain already cached, key: %016Lx tail class: [%p] %s\n", chain_key, class->key, class->name);
return 0;