aboutsummaryrefslogtreecommitdiff
path: root/arch/ia64/include/asm/spinlock_types.h
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2009-10-07 10:54:19 -0700
committerTony Luck <tony.luck@intel.com>2009-10-07 10:54:19 -0700
commit9d40ee200a527ce08ab8c793ba8ae3e242edbb0e (patch)
tree189b7dc9cde0ceb791bb3bdd1a1d9a22aee00336 /arch/ia64/include/asm/spinlock_types.h
parent0eca52a92735f43462165efe00a7e394345fb38e (diff)
[IA64] Squeeze ticket locks back into 4 bytes.
Linus pointed out that other people have spent large amounts of time and effort to optimize the layout of frequently used structures. Often these have embedded locks, and the assumption is that a lock takes 4 bytes. Linus also pointed out how to work with the limited options for atomic instructions on Itanium. Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/include/asm/spinlock_types.h')
-rw-r--r--arch/ia64/include/asm/spinlock_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/include/asm/spinlock_types.h b/arch/ia64/include/asm/spinlock_types.h
index b61d136d9bc..474e46f1ab4 100644
--- a/arch/ia64/include/asm/spinlock_types.h
+++ b/arch/ia64/include/asm/spinlock_types.h
@@ -6,7 +6,7 @@
#endif
typedef struct {
- volatile unsigned long lock;
+ volatile unsigned int lock;
} raw_spinlock_t;
#define __RAW_SPIN_LOCK_UNLOCKED { 0 }