2 * Copyright 2008 Analog Devices Inc.
4 * Licensed under the GPL-2 or later.
7 #ifndef __ASM_SPINLOCK_TYPES_H
8 #define __ASM_SPINLOCK_TYPES_H
10 #ifndef __LINUX_SPINLOCK_TYPES_H
11 # error "please don't include this file directly"
14 #include <asm/rwlock.h>
17 volatile unsigned int lock
;
20 #define __ARCH_SPIN_LOCK_UNLOCKED { 0 }
23 volatile unsigned int lock
;
26 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }