summaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64/alternative-asm.i
diff options
context:
space:
mode:
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 @@
+#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