git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MIPS: Rewrite spinlocks to ticket locks.
[pandora-kernel.git]
/
arch
/
mips
/
include
/
asm
/
spinlock_types.h
diff --git
a/arch/mips/include/asm/spinlock_types.h
b/arch/mips/include/asm/spinlock_types.h
index
ce26c50
..
adeedaa
100644
(file)
--- a/
arch/mips/include/asm/spinlock_types.h
+++ b/
arch/mips/include/asm/spinlock_types.h
@@
-6,7
+6,12
@@
#endif
typedef struct {
- volatile unsigned int lock;
+ /*
+ * bits 0..13: serving_now
+ * bits 14 : junk data
+ * bits 15..28: ticket
+ */
+ unsigned int lock;
} raw_spinlock_t;
#define __RAW_SPIN_LOCK_UNLOCKED { 0 }