Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/linux linux/spinlock.h: spin_l...



details:   https://anonhg.NetBSD.org/src/rev/83496e28046b
branches:  trunk
changeset: 372020:83496e28046b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Oct 25 23:33:29 2022 +0000

description:
linux/spinlock.h: spin_lock_bh, spin_unlock_bh

Nothing special needed here; NetBSD mutex(9) at IPL_* giving spin
locks already blocks `BH' (i.e., softints -- although I'm not sure
softints are relevant to the one use of this in vmwgfx).

diffstat:

 sys/external/bsd/drm2/include/linux/spinlock.h |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 07de8d3b9a25 -r 83496e28046b sys/external/bsd/drm2/include/linux/spinlock.h
--- a/sys/external/bsd/drm2/include/linux/spinlock.h    Tue Oct 25 23:33:18 2022 +0000
+++ b/sys/external/bsd/drm2/include/linux/spinlock.h    Tue Oct 25 23:33:29 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spinlock.h,v 1.14 2021/12/19 11:52:08 riastradh Exp $  */
+/*     $NetBSD: spinlock.h,v 1.15 2022/10/25 23:33:29 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -65,6 +65,18 @@
 }
 
 static inline void
+spin_lock_bh(spinlock_t *spinlock)
+{
+       spin_lock(spinlock);
+}
+
+static inline void
+spin_unlock_bh(spinlock_t *spinlock)
+{
+       spin_unlock(spinlock);
+}
+
+static inline void
 spin_lock_irq(spinlock_t *spinlock)
 {
        spin_lock(spinlock);



Home | Main Index | Thread Index | Old Index