spinlock.h 438 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0
  2. *
  3. * include/asm-sh/spinlock.h
  4. *
  5. * Copyright (C) 2002, 2003 Paul Mundt
  6. * Copyright (C) 2006, 2007 Akio Idehara
  7. */
  8. #ifndef __ASM_SH_SPINLOCK_H
  9. #define __ASM_SH_SPINLOCK_H
  10. #if defined(CONFIG_CPU_SH4A)
  11. #include <asm/spinlock-llsc.h>
  12. #elif defined(CONFIG_CPU_J2)
  13. #include <asm/spinlock-cas.h>
  14. #else
  15. #error "The configured cpu type does not support spinlocks"
  16. #endif
  17. #endif /* __ASM_SH_SPINLOCK_H */