locking: Convert raw_rwlock to arch_rwlock
[pohmelfs.git] / arch / mips / include / asm / spinlock_types.h
blobee197c2f9c98725985d99289dc20f6e3a5110738
1 #ifndef _ASM_SPINLOCK_TYPES_H
2 #define _ASM_SPINLOCK_TYPES_H
4 #ifndef __LINUX_SPINLOCK_TYPES_H
5 # error "please don't include this file directly"
6 #endif
8 typedef struct {
9 /*
10 * bits 0..13: serving_now
11 * bits 14 : junk data
12 * bits 15..28: ticket
14 unsigned int lock;
15 } arch_spinlock_t;
17 #define __ARCH_SPIN_LOCK_UNLOCKED { 0 }
19 typedef struct {
20 volatile unsigned int lock;
21 } arch_rwlock_t;
23 #define __ARCH_RW_LOCK_UNLOCKED { 0 }
25 #endif