]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/spinlock_types.h
PCI: add routines for debugging and handling lost interrupts
[linux-2.6-omap-h63xx.git] / include / linux / spinlock_types.h
index 210549ba4ef4b8a0fad84e8760ef6c84ec23ec9e..68d88f71f1a2049c2f8be89c47aab85978f21054 100644 (file)
@@ -9,17 +9,17 @@
  * Released under the General Public License (GPL).
  */
 
-#include <linux/lockdep.h>
-
 #if defined(CONFIG_SMP)
 # include <asm/spinlock_types.h>
 #else
 # include <linux/spinlock_types_up.h>
 #endif
 
+#include <linux/lockdep.h>
+
 typedef struct {
        raw_spinlock_t raw_lock;
-#if defined(CONFIG_PREEMPT) && defined(CONFIG_SMP)
+#ifdef CONFIG_GENERIC_LOCKBREAK
        unsigned int break_lock;
 #endif
 #ifdef CONFIG_DEBUG_SPINLOCK
@@ -35,7 +35,7 @@ typedef struct {
 
 typedef struct {
        raw_rwlock_t raw_lock;
-#if defined(CONFIG_PREEMPT) && defined(CONFIG_SMP)
+#ifdef CONFIG_GENERIC_LOCKBREAK
        unsigned int break_lock;
 #endif
 #ifdef CONFIG_DEBUG_SPINLOCK