Merge remote-tracking branch 'asoc/topic/intel' into asoc-next
[sfrench/cifs-2.6.git] / arch / sparc / include / asm / spinlock_types.h
1 #ifndef __SPARC_SPINLOCK_TYPES_H
2 #define __SPARC_SPINLOCK_TYPES_H
3
4 #ifdef CONFIG_QUEUED_SPINLOCKS
5 #include <asm-generic/qspinlock_types.h>
6 #else
7
8 typedef struct {
9         volatile unsigned char lock;
10 } arch_spinlock_t;
11
12 #define __ARCH_SPIN_LOCK_UNLOCKED       { 0 }
13 #endif /* CONFIG_QUEUED_SPINLOCKS */
14
15 #ifdef CONFIG_QUEUED_RWLOCKS
16 #include <asm-generic/qrwlock_types.h>
17 #else
18 typedef struct {
19         volatile unsigned int lock;
20 } arch_rwlock_t;
21
22 #define __ARCH_RW_LOCK_UNLOCKED         { 0 }
23 #endif /* CONFIG_QUEUED_RWLOCKS */
24 #endif