aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64/rwlock.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
commit8b059d2373c16b6d32787a49daf8ccf72dc61b71 (patch)
tree4814940e77c8956bd94d35edf765ff1698e4c57c /include/asm-x86_64/rwlock.h
parent[PATCH] fix is_at_popf() for compat tasks (diff)
downloadlinux-dev-8b059d2373c16b6d32787a49daf8ccf72dc61b71.tar.xz
linux-dev-8b059d2373c16b6d32787a49daf8ccf72dc61b71.zip
[PATCH] Clean up spin/rwlocks
- Inline spinlock strings into their inline functions - Convert macros to typesafe inlines - Replace some leftover __asm__ __volatile__s with asm volatile Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'include/asm-x86_64/rwlock.h')
-rw-r--r--include/asm-x86_64/rwlock.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/include/asm-x86_64/rwlock.h b/include/asm-x86_64/rwlock.h
index 28a080d23119..72aeebed920b 100644
--- a/include/asm-x86_64/rwlock.h
+++ b/include/asm-x86_64/rwlock.h
@@ -21,18 +21,6 @@
#define RW_LOCK_BIAS 0x01000000
#define RW_LOCK_BIAS_STR "0x01000000"
-#define __build_read_lock(rw) \
- asm volatile(LOCK_PREFIX "subl $1,(%0)\n\t" \
- "jns 1f\n" \
- "call __read_lock_failed\n" \
- "1:\n" \
- ::"D" (rw), "i" (RW_LOCK_BIAS) : "memory")
-
-#define __build_write_lock(rw) \
- asm volatile(LOCK_PREFIX "subl %1,(%0)\n\t" \
- "jz 1f\n" \
- "\tcall __write_lock_failed\n\t" \
- "1:\n" \
- ::"D" (rw), "i" (RW_LOCK_BIAS) : "memory")
+/* Actual code is in asm/spinlock.h or in arch/x86_64/lib/rwlock.S */
#endif