]> err.no Git - linux-2.6/blobdiff - include/linux/lockdep.h
[PATCH] lockdep: annotate genirq
[linux-2.6] / include / linux / lockdep.h
index 80ec7a4dbc989474ead6b518a490643dbdf9c3cf..316e0fb8d7b1f6533afe0afa5e89057f5afaed63 100644 (file)
@@ -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);