18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
48c2ecf20Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
58c2ecf20Sopenharmony_ci * for more details.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Copyright (C) 1999, 2000, 06 Ralf Baechle (ralf@linux-mips.org)
88c2ecf20Sopenharmony_ci * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
98c2ecf20Sopenharmony_ci * Copyright (C) 2020 Loongson Technology Corporation Limited
108c2ecf20Sopenharmony_ci */
118c2ecf20Sopenharmony_ci#ifndef _ASM_SPINLOCK_H
128c2ecf20Sopenharmony_ci#define _ASM_SPINLOCK_H
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci/* How long a lock should spin before we consider blocking */
158c2ecf20Sopenharmony_ci#define SPIN_THRESHOLD  (1 << 15)
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#include <asm/processor.h>
188c2ecf20Sopenharmony_ci#include <asm/qrwlock.h>
198c2ecf20Sopenharmony_ci#include <asm/qspinlock.h>
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#endif /* _ASM_SPINLOCK_H */
22