Adrian Bunk | 7e02cb9 | 2007-10-17 18:04:38 +0200 | [diff] [blame] | 1 | #ifdef __ASSEMBLY__ |
2 | |||||
Jan Beulich | 99063c0 | 2009-11-27 15:06:16 +0000 | [diff] [blame] | 3 | #include <asm/asm.h> |
Adrian Bunk | 7e02cb9 | 2007-10-17 18:04:38 +0200 | [diff] [blame] | 4 | |
5 | #ifdef CONFIG_SMP | ||||
6 | .macro LOCK_PREFIX | ||||
7 | 1: lock | ||||
8 | .section .smp_locks,"a" | ||||
Jan Beulich | 5967ed8 | 2010-04-21 16:08:14 +0100 | [diff] [blame] | 9 | .balign 4 |
10 | .long 1b - . | ||||
Adrian Bunk | 7e02cb9 | 2007-10-17 18:04:38 +0200 | [diff] [blame] | 11 | .previous |
12 | .endm | ||||
13 | #else | ||||
14 | .macro LOCK_PREFIX | ||||
15 | .endm | ||||
16 | #endif | ||||
17 | |||||
18 | #endif /* __ASSEMBLY__ */ |