summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/spinlock.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/spinlock.h')
-rw-r--r--kernel/include/linux/spinlock.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/include/linux/spinlock.h b/kernel/include/linux/spinlock.h
index b241cc044..02928fa54 100644
--- a/kernel/include/linux/spinlock.h
+++ b/kernel/include/linux/spinlock.h
@@ -355,6 +355,12 @@ static __always_inline void spin_unlock(spinlock_t *lock)
raw_spin_unlock(&lock->rlock);
}
+static __always_inline int spin_unlock_no_deboost(spinlock_t *lock)
+{
+ raw_spin_unlock(&lock->rlock);
+ return 0;
+}
+
static __always_inline void spin_unlock_bh(spinlock_t *lock)
{
raw_spin_unlock_bh(&lock->rlock);