aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64/alternative-asm.i
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-09-26 04:52:28 -0400
committerAndi Kleen <andi@basil.nowhere.org>2006-09-26 04:52:28 -0400
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 000000000000..e4041f4fa4dc
--- /dev/null
+++ b/include/asm-x86_64/alternative-asm.i
@@ -0,0 +1,14 @@
1#include <linux/config.h>
2
3#ifdef CONFIG_SMP
4 .macro LOCK_PREFIX
51: lock
6 .section .smp_locks,"a"
7 .align 8
8 .quad 1b
9 .previous
10 .endm
11#else
12 .macro LOCK_PREFIX
13 .endm
14#endif