diff options
author | Palmer Dabbelt <palmer@rivosinc.com> | 2022-03-16 16:11:33 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2022-05-11 11:50:10 -0700 |
commit | c9c0b0ba1e1134a8dcf386474a4c85718b6fe1d2 (patch) | |
tree | 8aa2ae4e0fc4d47cb03ecd0b52a4bc4fa5fcd512 /arch/riscv/include/asm/spinlock_types.h | |
parent | 4922a3ea0121fb6741bacaa7bd1b678f51f40461 (diff) |
RISC-V: Move to queued RW locks
Now that we have fair spinlocks we can use the generic queued rwlocks,
so we might as well do so.
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/include/asm/spinlock_types.h')
-rw-r--r-- | arch/riscv/include/asm/spinlock_types.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/riscv/include/asm/spinlock_types.h b/arch/riscv/include/asm/spinlock_types.h deleted file mode 100644 index f2f9b5d7120d..000000000000 --- a/arch/riscv/include/asm/spinlock_types.h +++ /dev/null @@ -1,24 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -/* - * Copyright (C) 2015 Regents of the University of California - */ - -#ifndef _ASM_RISCV_SPINLOCK_TYPES_H -#define _ASM_RISCV_SPINLOCK_TYPES_H - -/* This is horible, but the whole file is going away in the next commit. */ -#define __ASM_GENERIC_QRWLOCK_TYPES_H - -#ifndef __LINUX_SPINLOCK_TYPES_RAW_H -# error "please don't include this file directly" -#endif - -#include <asm-generic/spinlock_types.h> - -typedef struct { - volatile unsigned int lock; -} arch_rwlock_t; - -#define __ARCH_RW_LOCK_UNLOCKED { 0 } - -#endif /* _ASM_RISCV_SPINLOCK_TYPES_H */ |