aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64/spinlock.h
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-09-26 10:52:32 +0200
committerAndi Kleen <andi@basil.nowhere.org>2006-09-26 10:52:32 +0200
commit8578bdf835d6d6ece6718858d351456367b8a5cf (patch)
tree5bf4aa72bda1f5c508d955a2d32b5d292f8bd5a7 /include/asm-x86_64/spinlock.h
parent[PATCH] i386: Remove lock section support in semaphore.h (diff)
downloadlinux-dev-8578bdf835d6d6ece6718858d351456367b8a5cf.tar.xz
linux-dev-8578bdf835d6d6ece6718858d351456367b8a5cf.zip
[PATCH] Don't use lock section for mutexes and semaphores
Lock sections cannot be handled by the dwarf2 unwinder. Disadvantage is a taken branch in the hot path. Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'include/asm-x86_64/spinlock.h')
-rw-r--r--include/asm-x86_64/spinlock.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/asm-x86_64/spinlock.h b/include/asm-x86_64/spinlock.h
index a8e3d89f591f..1d0733b38a4b 100644
--- a/include/asm-x86_64/spinlock.h
+++ b/include/asm-x86_64/spinlock.h
@@ -22,14 +22,13 @@
#define __raw_spin_lock_string \
"\n1:\t" \
LOCK_PREFIX " ; decl %0\n\t" \
- "js 2f\n" \
- LOCK_SECTION_START("") \
- "2:\t" \
+ "jns 2f\n" \
+ "3:\n" \
"rep;nop\n\t" \
"cmpl $0,%0\n\t" \
- "jle 2b\n\t" \
+ "jle 3b\n\t" \
"jmp 1b\n" \
- LOCK_SECTION_END
+ "2:\t" \
#define __raw_spin_lock_string_up \
"\n\tdecl %0"