summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJarek Poplawski <jarkao2@o2.pl>2006-09-06 00:03:39 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-06 11:00:01 -0700
commitfc47e7b592dc45b03c27b0a4c8f2d215dae9944d (patch)
tree54ea55d491e2f708bc23655041668e19da3de619 /kernel
parentc336923b668fdcf0312efbec3b44895d713f4d81 (diff)
downloadlinux-fc47e7b592dc45b03c27b0a4c8f2d215dae9944d.tar.gz
linux-fc47e7b592dc45b03c27b0a4c8f2d215dae9944d.tar.bz2
linux-fc47e7b592dc45b03c27b0a4c8f2d215dae9944d.zip
[PATCH] lockdep ifdef fix
With CONFIG_SMP=y CONFIG_PREEMPT=y CONFIG_LOCKDEP=y CONFIG_DEBUG_LOCK_ALLOC=y # CONFIG_PROVE_LOCKING is not set spin_unlock_irqrestore() goes through lockdep but spin_lock_irqsave() doesn't. Apparently, bad things happen. Acked-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 'kernel')
-rw-r--r--kernel/spinlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/spinlock.c b/kernel/spinlock.c
index bfd6ad9c0330..fb524b009eef 100644
--- a/kernel/spinlock.c
+++ b/kernel/spinlock.c
@@ -72,7 +72,7 @@ EXPORT_SYMBOL(_write_trylock);
* not re-enabled during lock-acquire (which the preempt-spin-ops do):
*/
#if !defined(CONFIG_PREEMPT) || !defined(CONFIG_SMP) || \
- defined(CONFIG_PROVE_LOCKING)
+ defined(CONFIG_DEBUG_LOCK_ALLOC)
void __lockfunc _read_lock(rwlock_t *lock)
{