aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/alternative.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/alternative.h')
-rw-r--r--arch/x86/include/asm/alternative.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h
index 4cd6a3b71824..d7faa16622d8 100644
--- a/arch/x86/include/asm/alternative.h
+++ b/arch/x86/include/asm/alternative.h
@@ -31,15 +31,8 @@
31 */ 31 */
32 32
33#ifdef CONFIG_SMP 33#ifdef CONFIG_SMP
34#define LOCK_PREFIX_HERE \ 34#define LOCK_PREFIX_HERE "LOCK_PREFIX_HERE\n\t"
35 ".pushsection .smp_locks,\"a\"\n" \ 35#define LOCK_PREFIX "LOCK_PREFIX "
36 ".balign 4\n" \
37 ".long 671f - .\n" /* offset */ \
38 ".popsection\n" \
39 "671:"
40
41#define LOCK_PREFIX LOCK_PREFIX_HERE "\n\tlock; "
42
43#else /* ! CONFIG_SMP */ 36#else /* ! CONFIG_SMP */
44#define LOCK_PREFIX_HERE "" 37#define LOCK_PREFIX_HERE ""
45#define LOCK_PREFIX "" 38#define LOCK_PREFIX ""