1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * This file is subject to the terms and conditions of the GNU General Public 4 * License. See the file "COPYING" in the main directory of this archive 5 * for more details. 6 * 7 * Copyright (C) 1999, 2000, 06 Ralf Baechle (ralf@linux-mips.org) 8 * Copyright (C) 1999, 2000 Silicon Graphics, Inc. 9 * Copyright (C) 2020 Loongson Technology Corporation Limited 10 */ 11 #ifndef _ASM_SPINLOCK_H 12 #define _ASM_SPINLOCK_H 13 14 /* How long a lock should spin before we consider blocking */ 15 #define SPIN_THRESHOLD (1 << 15) 16 17 #include <asm/processor.h> 18 #include <asm/qrwlock.h> 19 #include <asm/qspinlock.h> 20 21 #endif /* _ASM_SPINLOCK_H */ 22