alternative-asm.h 227 B

123456789101112131415161718
  1. #ifdef __ASSEMBLY__
  2. #include <asm/asm.h>
  3. #ifdef CONFIG_SMP
  4. .macro LOCK_PREFIX
  5. 1: lock
  6. .section .smp_locks,"a"
  7. .balign 4
  8. .long 1b - .
  9. .previous
  10. .endm
  11. #else
  12. .macro LOCK_PREFIX
  13. .endm
  14. #endif
  15. #endif /* __ASSEMBLY__ */