diff options
author | Tony Luck <tony.luck@intel.com> | 2009-09-25 11:42:16 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2009-09-25 11:42:16 -0400 |
commit | 2c86963b093c1a0887dfc6b32c6e5ea3a80f2922 (patch) | |
tree | d1ed58dd0a644dd670e3724a575112fedd4b4250 /arch/ia64/kernel/ia64_ksyms.c | |
parent | 53cddfcc0e760d2b364878b6dadbd0c6d087cfae (diff) |
[IA64] implement ticket locks for Itanium
Back in January 2008 Nick Piggin implemented "ticket" spinlocks
for X86 (See commit 314cdbefd1fd0a7acf3780e9628465b77ea6a836).
IA64 implementation has a couple of differences because of the
available atomic operations ... e.g. we have no fetchadd2 instruction
that operates on a 16-bit quantity so we make ticket locks use
a 32-bit word for each of the current ticket and now-serving values.
Performance on uncontended locks is about 8% worse than the previous
implementation, but this seems a good trade for determinism in the
contended case. Performance impact on macro-level benchmarks is in
the noise.
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/ia64_ksyms.c')
-rw-r--r-- | arch/ia64/kernel/ia64_ksyms.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/ia64/kernel/ia64_ksyms.c b/arch/ia64/kernel/ia64_ksyms.c index 8ebccb589e1c..14d39e300627 100644 --- a/arch/ia64/kernel/ia64_ksyms.c +++ b/arch/ia64/kernel/ia64_ksyms.c | |||
@@ -84,26 +84,6 @@ EXPORT_SYMBOL(ia64_save_scratch_fpregs); | |||
84 | #include <asm/unwind.h> | 84 | #include <asm/unwind.h> |
85 | EXPORT_SYMBOL(unw_init_running); | 85 | EXPORT_SYMBOL(unw_init_running); |
86 | 86 | ||
87 | #ifdef ASM_SUPPORTED | ||
88 | # ifdef CONFIG_SMP | ||
89 | # if (__GNUC__ == 3 && __GNUC_MINOR__ < 3) | ||
90 | /* | ||
91 | * This is not a normal routine and we don't want a function descriptor for it, so we use | ||
92 | * a fake declaration here. | ||
93 | */ | ||
94 | extern char ia64_spinlock_contention_pre3_4; | ||
95 | EXPORT_SYMBOL(ia64_spinlock_contention_pre3_4); | ||
96 | # else | ||
97 | /* | ||
98 | * This is not a normal routine and we don't want a function descriptor for it, so we use | ||
99 | * a fake declaration here. | ||
100 | */ | ||
101 | extern char ia64_spinlock_contention; | ||
102 | EXPORT_SYMBOL(ia64_spinlock_contention); | ||
103 | # endif | ||
104 | # endif | ||
105 | #endif | ||
106 | |||
107 | #if defined(CONFIG_IA64_ESI) || defined(CONFIG_IA64_ESI_MODULE) | 87 | #if defined(CONFIG_IA64_ESI) || defined(CONFIG_IA64_ESI_MODULE) |
108 | extern void esi_call_phys (void); | 88 | extern void esi_call_phys (void); |
109 | EXPORT_SYMBOL_GPL(esi_call_phys); | 89 | EXPORT_SYMBOL_GPL(esi_call_phys); |