linux/arch/hexagon/include/asm/spinlock_types.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0-only */
   2/*
   3 * Spinlock support for the Hexagon architecture
   4 *
   5 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
   6 */
   7
   8#ifndef _ASM_SPINLOCK_TYPES_H
   9#define _ASM_SPINLOCK_TYPES_H
  10
  11#ifndef __LINUX_SPINLOCK_TYPES_H
  12# error "please don't include this file directly"
  13#endif
  14
  15typedef struct {
  16        volatile unsigned int lock;
  17} arch_spinlock_t;
  18
  19#define __ARCH_SPIN_LOCK_UNLOCKED       { 0 }
  20
  21typedef struct {
  22        volatile unsigned int lock;
  23} arch_rwlock_t;
  24
  25#define __ARCH_RW_LOCK_UNLOCKED         { 0 }
  26
  27#endif
  28