diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-07-03 00:25:06 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-03 15:27:06 -0700 |
commit | 243c7621aac4ed1aa79524c9a1cecf7c05a28124 (patch) | |
tree | d8f7a1fce57c9349183bfd9ab6738a763078db85 /include/linux/lockdep.h | |
parent | 8b8f319fc7f4ab59f567d6a401a62659b3d37007 (diff) | |
download | linux-243c7621aac4ed1aa79524c9a1cecf7c05a28124.tar.gz linux-243c7621aac4ed1aa79524c9a1cecf7c05a28124.tar.bz2 linux-243c7621aac4ed1aa79524c9a1cecf7c05a28124.zip |
[PATCH] lockdep: annotate genirq
Teach special (recursive) locking code to the lock validator. Has no effect
on non-lockdep kernels.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/lockdep.h')
-rw-r--r-- | include/linux/lockdep.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 80ec7a4dbc98..316e0fb8d7b1 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h @@ -270,6 +270,12 @@ static inline int lockdep_internal(void) struct lock_class_key { }; #endif /* !LOCKDEP */ +#if defined(CONFIG_TRACE_IRQFLAGS) && defined(CONFIG_GENERIC_HARDIRQS) +extern void early_init_irq_lock_class(void); +#else +# define early_init_irq_lock_class() do { } while (0) +#endif + #ifdef CONFIG_TRACE_IRQFLAGS extern void early_boot_irqs_off(void); extern void early_boot_irqs_on(void); |