1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Spinlock support for the Hexagon architecture
5 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
8 #ifndef _ASM_SPINLOCK_TYPES_H
9 #define _ASM_SPINLOCK_TYPES_H
11 #ifndef __LINUX_SPINLOCK_TYPES_RAW_H
12 # error "please don't include this file directly"
16 volatile unsigned int lock;
19 #define __ARCH_SPIN_LOCK_UNLOCKED { 0 }
22 volatile unsigned int lock;
25 #define __ARCH_RW_LOCK_UNLOCKED { 0 }