spinlock.h 578 B

1234567891011121314151617181920212223
  1. /*
  2. * include/asm-sh/spinlock.h
  3. *
  4. * Copyright (C) 2002, 2003 Paul Mundt
  5. * Copyright (C) 2006, 2007 Akio Idehara
  6. *
  7. * This file is subject to the terms and conditions of the GNU General Public
  8. * License. See the file "COPYING" in the main directory of this archive
  9. * for more details.
  10. */
  11. #ifndef __ASM_SH_SPINLOCK_H
  12. #define __ASM_SH_SPINLOCK_H
  13. #if defined(CONFIG_CPU_SH4A)
  14. #include <asm/spinlock-llsc.h>
  15. #elif defined(CONFIG_CPU_J2)
  16. #include <asm/spinlock-cas.h>
  17. #else
  18. #error "The configured cpu type does not support spinlocks"
  19. #endif
  20. #endif /* __ASM_SH_SPINLOCK_H */