aboutsummaryrefslogtreecommitdiff
path: root/include/asm-x86_64/alternative-asm.i
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-09-26 10:52:28 +0200
committerAndi Kleen <andi@basil.nowhere.org>2006-09-26 10:52:28 +0200
commitb4062b16094038334d9bbadac0397a3fc9e981b0 (patch)
treee75506b979825010319f96a0868b71788ac856df /include/asm-x86_64/alternative-asm.i
parent538b5b419c7ae39a4b2deb15278da36102e42346 (diff)
[PATCH] Support patchable lock prefix for pure assembly files
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'include/asm-x86_64/alternative-asm.i')
-rw-r--r--include/asm-x86_64/alternative-asm.i14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-x86_64/alternative-asm.i b/include/asm-x86_64/alternative-asm.i
new file mode 100644
index 00000000000..e4041f4fa4d
--- /dev/null
+++ b/include/asm-x86_64/alternative-asm.i
@@ -0,0 +1,14 @@
+#include <linux/config.h>
+
+#ifdef CONFIG_SMP
+ .macro LOCK_PREFIX
+1: lock
+ .section .smp_locks,"a"
+ .align 8
+ .quad 1b
+ .previous
+ .endm
+#else
+ .macro LOCK_PREFIX
+ .endm
+#endif