blob: b97f786a48d597ce4c718667a19c0d8c2b45c9c7 [file] [log] [blame]
Adrian Bunk7e02cb92007-10-17 18:04:38 +02001#ifdef __ASSEMBLY__
2
Jan Beulich99063c02009-11-27 15:06:16 +00003#include <asm/asm.h>
Adrian Bunk7e02cb92007-10-17 18:04:38 +02004
5#ifdef CONFIG_SMP
6 .macro LOCK_PREFIX
71: lock
8 .section .smp_locks,"a"
Jan Beulich99063c02009-11-27 15:06:16 +00009 _ASM_ALIGN
10 _ASM_PTR 1b
Adrian Bunk7e02cb92007-10-17 18:04:38 +020011 .previous
12 .endm
13#else
14 .macro LOCK_PREFIX
15 .endm
16#endif
17
18#endif /* __ASSEMBLY__ */