spi-topcliff-pch: add recovery processing in case wait-event timeout
[zen-stable.git] / arch / x86 / include / asm / alternative-asm.h
blob952bd0100c5c050289baff430ab0e4e30f56e0fc
1 #ifdef __ASSEMBLY__
3 #include <asm/asm.h>
5 #ifdef CONFIG_SMP
6 .macro LOCK_PREFIX
7 672: lock
8 .section .smp_locks,"a"
9 .balign 4
10 .long 672b - .
11 .previous
12 .endm
13 #else
14 .macro LOCK_PREFIX
15 .endm
16 #endif
18 .macro altinstruction_entry orig alt feature orig_len alt_len
19 .long \orig - .
20 .long \alt - .
21 .word \feature
22 .byte \orig_len
23 .byte \alt_len
24 .endm
26 #endif /* __ASSEMBLY__ */