- patches.suse/slab-handle-memoryless-nodes-v2a.patch: Refresh.
[linux-flexiantxendom0-3.2.10.git] / arch / mips / include / asm / spinlock_types.h
1 #ifndef _ASM_SPINLOCK_TYPES_H
2 #define _ASM_SPINLOCK_TYPES_H
3
4 #ifndef __LINUX_SPINLOCK_TYPES_H
5 # error "please don't include this file directly"
6 #endif
7
8 typedef struct {
9         /*
10          * bits  0..13: serving_now
11          * bits 14    : junk data
12          * bits 15..28: ticket
13          */
14         unsigned int lock;
15 } arch_spinlock_t;
16
17 #define __ARCH_SPIN_LOCK_UNLOCKED       { 0 }
18
19 typedef struct {
20         volatile unsigned int lock;
21 } arch_rwlock_t;
22
23 #define __ARCH_RW_LOCK_UNLOCKED         { 0 }
24
25 #endif