summaryrefslogtreecommitdiff
path: root/arch/riscv/include/asm/spinlock_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/include/asm/spinlock_types.h')
-rw-r--r--arch/riscv/include/asm/spinlock_types.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/riscv/include/asm/spinlock_types.h b/arch/riscv/include/asm/spinlock_types.h
index 5a35a49505da..f2f9b5d7120d 100644
--- a/arch/riscv/include/asm/spinlock_types.h
+++ b/arch/riscv/include/asm/spinlock_types.h
@@ -6,15 +6,14 @@
#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
-typedef struct {
- volatile unsigned int lock;
-} arch_spinlock_t;
-
-#define __ARCH_SPIN_LOCK_UNLOCKED { 0 }
+#include <asm-generic/spinlock_types.h>
typedef struct {
volatile unsigned int lock;