|
@@ -364,6 +364,23 @@ do { \
|
|
|
|
|
|
#endif /* CONFIG_LOCK_STAT */
|
|
|
|
|
|
+#ifdef CONFIG_LOCKDEP
|
|
|
+
|
|
|
+/*
|
|
|
+ * On lockdep we dont want the hand-coded irq-enable of
|
|
|
+ * _raw_*_lock_flags() code, because lockdep assumes
|
|
|
+ * that interrupts are not re-enabled during lock-acquire:
|
|
|
+ */
|
|
|
+#define LOCK_CONTENDED_FLAGS(_lock, try, lock, lockfl, flags) \
|
|
|
+ LOCK_CONTENDED((_lock), (try), (lock))
|
|
|
+
|
|
|
+#else /* CONFIG_LOCKDEP */
|
|
|
+
|
|
|
+#define LOCK_CONTENDED_FLAGS(_lock, try, lock, lockfl, flags) \
|
|
|
+ lockfl((_lock), (flags))
|
|
|
+
|
|
|
+#endif /* CONFIG_LOCKDEP */
|
|
|
+
|
|
|
#ifdef CONFIG_GENERIC_HARDIRQS
|
|
|
extern void early_init_irq_lock_class(void);
|
|
|
#else
|