summaryrefslogtreecommitdiffstats
path: root/arch/openrisc/include/asm/spinlock.h
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@rivosinc.com>2022-05-20 10:14:08 -0700
committerPalmer Dabbelt <palmer@rivosinc.com>2022-05-20 10:14:08 -0700
commit19bc59bbeddf07360ef8bceb420f95712977a32f (patch)
treed4ae94a2d92a43d9b9c887d63eb23229d37a4def /arch/openrisc/include/asm/spinlock.h
parent83a7a614ce584c469bf8abfc2cd539701bd7d4e9 (diff)
parent9282d0996936c5fbf877c0d096a3feb456c878ad (diff)
downloadlinux-19bc59bbeddf07360ef8bceb420f95712977a32f.tar.bz2
Merge tag 'generic-ticket-spinlocks-v6' into for-next
asm-generic: New generic ticket-based spinlock This contains a new ticket-based spinlock that uses only generic atomics and doesn't require as much from the memory system as qspinlock does in order to be fair. It also includes a bit of documentation about the qspinlock and qrwlock fairness requirements. This will soon be used by a handful of architectures that don't meet the qspinlock requirements. * tag 'generic-ticket-spinlocks-v6': csky: Move to generic ticket-spinlock RISC-V: Move to queued RW locks RISC-V: Move to generic spinlocks openrisc: Move to ticket-spinlock asm-generic: qrwlock: Document the spinlock fairness requirements asm-generic: qspinlock: Indicate the use of mixed-size atomics asm-generic: ticket-lock: New generic ticket-based spinlock
Diffstat (limited to 'arch/openrisc/include/asm/spinlock.h')
-rw-r--r--arch/openrisc/include/asm/spinlock.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/openrisc/include/asm/spinlock.h b/arch/openrisc/include/asm/spinlock.h
deleted file mode 100644
index 264944a71535..000000000000
--- a/arch/openrisc/include/asm/spinlock.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * OpenRISC Linux
- *
- * Linux architectural port borrowing liberally from similar works of
- * others. All original copyrights apply as per the original source
- * declaration.
- *
- * OpenRISC implementation:
- * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
- * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
- * et al.
- */
-
-#ifndef __ASM_OPENRISC_SPINLOCK_H
-#define __ASM_OPENRISC_SPINLOCK_H
-
-#include <asm/qspinlock.h>
-
-#include <asm/qrwlock.h>
-
-#define arch_spin_relax(lock) cpu_relax()
-#define arch_read_relax(lock) cpu_relax()
-#define arch_write_relax(lock) cpu_relax()
-
-
-#endif