diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2013-10-17 02:42:15 +0400 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2014-01-14 10:19:53 -0800 |
commit | 5515daa9ca5a0992cc1c55d4c6c7ddb116e829b4 (patch) | |
tree | d02c81a40e1355b1054a16fa4f7452672d978ff6 /arch/xtensa/include/asm/spinlock_types.h | |
parent | ff3849059d787ab2072032800e553c9022c9ab54 (diff) |
xtensa: fix arch spinlock function names
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/include/asm/spinlock_types.h')
-rw-r--r-- | arch/xtensa/include/asm/spinlock_types.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/spinlock_types.h b/arch/xtensa/include/asm/spinlock_types.h new file mode 100644 index 000000000000..7ec5ce10c9e9 --- /dev/null +++ b/arch/xtensa/include/asm/spinlock_types.h @@ -0,0 +1,20 @@ +#ifndef __ASM_SPINLOCK_TYPES_H +#define __ASM_SPINLOCK_TYPES_H + +#ifndef __LINUX_SPINLOCK_TYPES_H +# error "please don't include this file directly" +#endif + +typedef struct { + volatile unsigned int slock; +} arch_spinlock_t; + +#define __ARCH_SPIN_LOCK_UNLOCKED { 0 } + +typedef struct { + volatile unsigned int lock; +} arch_rwlock_t; + +#define __ARCH_RW_LOCK_UNLOCKED { 0 } + +#endif |