spinlock_types.h 530 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2015 Regents of the University of California
  4. */
  5. #ifndef _ASM_RISCV_SPINLOCK_TYPES_H
  6. #define _ASM_RISCV_SPINLOCK_TYPES_H
  7. #ifndef __LINUX_SPINLOCK_TYPES_H
  8. # error "please don't include this file directly"
  9. #endif
  10. typedef struct {
  11. volatile unsigned int lock;
  12. } arch_spinlock_t;
  13. #define __ARCH_SPIN_LOCK_UNLOCKED { 0 }
  14. typedef struct {
  15. volatile unsigned int lock;
  16. } arch_rwlock_t;
  17. #define __ARCH_RW_LOCK_UNLOCKED { 0 }
  18. #endif /* _ASM_RISCV_SPINLOCK_TYPES_H */