aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-i386/alternative-asm.i
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/alternative-asm.i')
-rw-r--r--include/asm-i386/alternative-asm.i14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-i386/alternative-asm.i b/include/asm-i386/alternative-asm.i
new file mode 100644
index 000000000000..6c47e3b9484b
--- /dev/null
+++ b/include/asm-i386/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 4
8 .long 1b
9 .previous
10 .endm
11#else
12 .macro LOCK_PREFIX
13 .endm
14#endif