Merge tag 'sunxi-dt-for-3.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[deliverable/linux.git] / arch / x86 / include / asm / alternative-asm.h
CommitLineData
76f30759
PA
1#ifndef _ASM_X86_ALTERNATIVE_ASM_H
2#define _ASM_X86_ALTERNATIVE_ASM_H
3
7e02cb94
AB
4#ifdef __ASSEMBLY__
5
99063c0b 6#include <asm/asm.h>
7e02cb94
AB
7
8#ifdef CONFIG_SMP
9 .macro LOCK_PREFIX
ceb7b40b 10672: lock
9cebed42 11 .pushsection .smp_locks,"a"
5967ed87 12 .balign 4
ceb7b40b 13 .long 672b - .
9cebed42 14 .popsection
7e02cb94
AB
15 .endm
16#else
17 .macro LOCK_PREFIX
18 .endm
19#endif
20
9072d11d 21.macro altinstruction_entry orig alt feature orig_len alt_len
59e97e4d
AL
22 .long \orig - .
23 .long \alt - .
9072d11d
FY
24 .word \feature
25 .byte \orig_len
26 .byte \alt_len
27.endm
28
7e02cb94 29#endif /* __ASSEMBLY__ */
76f30759
PA
30
31#endif /* _ASM_X86_ALTERNATIVE_ASM_H */
This page took 0.470104 seconds and 5 git commands to generate.