]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-parisc/spinlock_types.h
[Bluetooth] Add automatic sniff mode support
[linux-2.6-omap-h63xx.git] / include / asm-parisc / spinlock_types.h
index 785bba822fbfac0429c9f58876f12fc8f18f8474..d6b479bdb8865b565071779747dfd526f1447a1b 100644 (file)
@@ -6,11 +6,15 @@
 #endif
 
 typedef struct {
+#ifdef CONFIG_PA20
+       volatile unsigned int slock;
+# define __RAW_SPIN_LOCK_UNLOCKED { 1 }
+#else
        volatile unsigned int lock[4];
+# define __RAW_SPIN_LOCK_UNLOCKED      { { 1, 1, 1, 1 } }
+#endif
 } raw_spinlock_t;
 
-#define __RAW_SPIN_LOCK_UNLOCKED       { { 1, 1, 1, 1 } }
-
 typedef struct {
        raw_spinlock_t lock;
        volatile int counter;