2009-09-24 08:11:24 -06:00
|
|
|
/*
|
|
|
|
* Copyright 2008 Analog Devices Inc.
|
|
|
|
*
|
|
|
|
* Licensed under the GPL-2 or later.
|
|
|
|
*/
|
|
|
|
|
2009-01-07 08:14:39 -07:00
|
|
|
#ifndef __ASM_SPINLOCK_TYPES_H
|
|
|
|
#define __ASM_SPINLOCK_TYPES_H
|
|
|
|
|
|
|
|
#ifndef __LINUX_SPINLOCK_TYPES_H
|
|
|
|
# error "please don't include this file directly"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <asm/rwlock.h>
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
volatile unsigned int lock;
|
2009-12-02 11:49:50 -07:00
|
|
|
} arch_spinlock_t;
|
2009-01-07 08:14:39 -07:00
|
|
|
|
2009-12-03 04:38:57 -07:00
|
|
|
#define __ARCH_SPIN_LOCK_UNLOCKED { 0 }
|
2009-01-07 08:14:39 -07:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
volatile unsigned int lock;
|
2009-12-03 12:01:19 -07:00
|
|
|
} arch_rwlock_t;
|
2009-01-07 08:14:39 -07:00
|
|
|
|
2009-12-03 12:01:19 -07:00
|
|
|
#define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
|
2009-01-07 08:14:39 -07:00
|
|
|
|
|
|
|
#endif
|